-
Notifications
You must be signed in to change notification settings - Fork 557
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
sql-insert format emits NULL as 'None' #1408
Comments
Smylers
changed the title
is:issue is:open sql-insert format emits NULL as 'None'
sql-insert format emits NULL as 'None'
Jun 22, 2023
Let me see... I'll fix it later. |
astroshot
added a commit
to astroshot/pgcli
that referenced
this issue
Jun 23, 2023
Body: 1. Fix issue dbcli#1408 sql-insert format emits NULL as 'None'; 2. Fix DUAL displays as ""DUAL""; ==== End ====
astroshot
added a commit
to astroshot/pgcli
that referenced
this issue
Jun 23, 2023
Body: 1. Fix issue dbcli#1408 sql-insert format emits NULL as 'None'; 2. Fix DUAL displays as ""DUAL""; ==== End ====
4 tasks
j-bennet
pushed a commit
that referenced
this issue
Jun 23, 2023
Fixed via #1409. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When using the new
sql-insert
format that @astroshot added in #1366, anyNULL
value in the data is displayed as the string'None'
.This obviously corrupts the data when the
INSERT
statement is run — either inserting a string that shouldn't be there, or where'None'
isn't a valid value (for instance in a numeric field, or where a non-NULL
value needs to match a foreign key), just refusing to insert anything.Demo:
Your environment
Please provide your OS and version information.
Ubuntu 22.04 LTS
Please provide your CLI version.
Version: 3.5.0
What is the output of
pip freeze
command.The text was updated successfully, but these errors were encountered: