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

Empty values are inserted as null strings #34

Open
fazendeiro opened this issue Feb 6, 2020 · 4 comments
Open

Empty values are inserted as null strings #34

fazendeiro opened this issue Feb 6, 2020 · 4 comments

Comments

@fazendeiro
Copy link

Hello,

I'm developing an Android app synced with a MSSQL Server.
After adding tables and syncing, i'm encountering an issue because there is no null values in my SQLite database, all has been inserted as null strings. It happens with TEXT columns, but also INT, that causes conversion errors in my app.

Is there a setting to change that?

@IchoTolot
Copy link

As far as I know changeable settings are only in the .conf file

@fazendeiro
Copy link
Author

Thank you,
I haven't found anything that changes that. Do you think this is normal behavior?

@IchoTolot
Copy link

IchoTolot commented Feb 6, 2020

I don't think so. IMHO all database values will be converted to string because they are transmitted as xml. But they should be converted back before they are written into the database. Is the Sqlite datatype of the column really "text"?
Personally I would test this with a mysql database, because in my opinion the support is best here. I run in some trouble too when I use postgres.
And...most important. Always use the latest version from https://projects.ampliapps.com/projects/ampli-sync/files

@fazendeiro
Copy link
Author

I use 3.2.15 so I don't think that's the issue.
Yes it is realy text, or varchar columns. The problem is that happens on integer columns.
I changed from Room library to SQLiteOpenHelper wich is more configurable.

Thank you for answers !

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

No branches or pull requests

2 participants