-
Notifications
You must be signed in to change notification settings - Fork 627
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
Use UTF-8 functions of SQLite to avoid unexpected data type conversions #84
Conversation
@mkauf Would you be willing to rebase this on master and provide some tests to confirm your code works like you think it should? |
@gitblit I have updated the pull request and written a test. |
@mkauf Sorry, about this but would you be willing to rebase this one more time? |
@gitblit OK, done |
@@ -396,4 +397,22 @@ public native synchronized int restore(String dbName, String sourceFileName, Pro | |||
static void throwex(String msg) throws SQLException { | |||
throw new SQLException(msg); | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These string util methods should move to org.sqlite.util.StringUtils
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah. Well that complicates the native implementation, doesn't it.
Thank you for merging! |
Also don't use modified UTF-8, see #61
Convert Java Strings to "unmodified" UTF-8 and vice versa.
Improve out-of-memory handling.
Fixes #78