python - UUID returning as bytes_le from MS SQL -


I ask a table with my Django app, but whenever I do a query on a specific table, I get it Instead of the practical string representation, the UUID columns were returned as a byte_level UUID. Now, I know that I am converting it by using uuid.UUID (bytes_le = value), but I am using this query to populate a WTForms QuerySelectField, so let me manually fix the UUID Is not luxury, unless I want to call the query, get the result, and then copy it to another list (fixed with UUID) and then pass that query into my QuerySelectField.query object The Or is there any better way that I can force Saklichi to stop me from making useless formats?

In addition, it is only happening on one table when I query any other table with UUID, then they work fine, and specify all 'uniqueidentifier' row type in my MSSQLServer tables And I am using the same data structure for the UUID column in all of my sqlalchemy models.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -