-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
ERROR Bad character - in base64 decode #415
Comments
The current SQLite support in pgloader considers that if a SQLite column is declared of type We need to find a way to expose that decision to the user and turn the current hard-coded solution into a default value with other options. |
Could you share with me some sample data, ideally a SQLite file with some data in that |
@dimitri I don't really have any additional data to provide and I manually cleaned things up and got up and running long ago. This isn't really an issue I personally am having anymore. Feel free to close if you want or leave open if you want to continue to track. |
Thanks for your input! |
Hi @dimitri is there any way to workaround this? I don't quite get the reasoning behind the assumption of the "base64" encoding, a |
If the SQLite driver returns the value of a blob column a string, don't make the assumption that the value is base64-encoded. Instead, check for actual base64 content by trying to decode the string as base64. See dimitri#415 .
This seems related to #60
I'm using a CI/CD tool called Drone and started using it with sqlite3. I'm trying to migrate to postgresql.
When using pgloader to migrate the data I see:
It seems when it tries to migrate data in sqlite3 table like: https://github.com/drone/drone/blob/v0.4.2/store/datastore/ddl/sqlite3/1_init.sql#L50-L57
That it fails to properly decode the data. As you can see the BLOBs are public/private keys that contain '-' in them.
The postgresql schema is defined like: https://github.com/drone/drone/blob/v0.4.2/store/datastore/ddl/postgres/1_init.sql#L40-L47
Just curious if you had any thoughts on how to workaround this issue.
Thanks!
The text was updated successfully, but these errors were encountered: