Skip to content

Fixed Byte[] issue #169

merged 1 commit into from Feb 13, 2013

2 participants

ServiceStack member

With this commit the issue regarding byte arrays is fixed (issues #107 and #109). I added tests for the following dialects: SQL Server, SQLite, MySql, PostgreSQL and Firefird

By default (see OrmLiteDialectProviderBase methods GetQuotedValue and ConvertDBValue) fields with the type byte[] are converted to base64 when stored and converted back from base64 when read (using the TypeSerializer). The last step was missing and so the value read was not equal to the original value.

In the existing implementation of the SQL Server dialect, this behavior was already overwritten (the original byte array is stored, no conversion is needed). I implemented the same behavior for the MySql dialect.

@mythz mythz merged commit 90e65b9 into ServiceStack:master Feb 13, 2013
ServiceStack member
mythz commented Feb 13, 2013

Awesome work! thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.