# [PATCH][PHP_5_0] MSSQL Uniqueid formatting, etc...

- Thread: https://externals.io/message/13512
- Original archive: https://news-web.php.net/php.internals/13512
- Started by Jason Borden on 2004-10-25T17:44:30+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #13512 — Jason Borden — 2004-10-25T17:44:30+00:00

URL: https://externals.io/message/13512#13512

Here's a patch to the MSSQL extention that:

1. Formats a resultant uniqueidentifer into a string (instead of raw binary)
which is the same way that odbc handles them.

2. Enables uniqueids to be used from freetds if SYBUNIQUE is defined in the
freetds code. I believe this is what the original author intended to do,
since the current code doesn't do anything unless you add your own -D
compile definition or change the code to work.

This patch could probably also be applied to the 4.3 and 5.1 trees without
modification, I haven't tried.

Jason
