Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved Guid support #497

Closed
ejball opened this issue May 15, 2018 · 2 comments
Closed

Improved Guid support #497

ejball opened this issue May 15, 2018 · 2 comments

Comments

@ejball
Copy link
Contributor

ejball commented May 15, 2018

We should add a GuidFormat connector option that specifies how the Guid type is read/written.

Option Description
Char36 All columns of CHAR(36) are read/written as Guid using lowercase hex and hyphens. (Current default behavior.)
Char32 All columns of CHAR(32) are read/written as Guid using lowercase hex without hyphens.
Binary16 All columns of BINARY(16) are read/written as Guid using big-endian byte order. Matches UUID_TO_BIN(x).
TimeSwapBinary16 All columns of BINARY(16) are read/written as Guid using big-endian byte order with time parts swapped. Matches UUID_TO_BIN(x,1).
OldBinary16 All columns of BINARY(16) are read/written as Guid using little-endian byte order. (Current behavior when OldGuids=True.)
None Guid is not supported. CHAR(36) and CHAR(32) are read/written as strings; BINARY(16) is read/written as a byte array.
@ejball
Copy link
Contributor Author

ejball commented May 17, 2018

Work in progress: master...ejball:guids

@bgrainger
Copy link
Member

Added in 0.41.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants