-
Notifications
You must be signed in to change notification settings - Fork 65
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
SELECT '' is NULL rather than empty string #49
Comments
In csvq, when the dual table is used, an empty string matches the column name in the dual table, so the value of that column in the dual table, null, is displayed as the value of the column whose column name is the empty string. This behavior is probably rarely a problem, but it might need to be fixed. |
What is the dual table? |
The dual table is a table prepared by DBMSs that is used to retrieve pseudo columns. It has one column and one record, so you can get the result you want by processing it like any other SELECT queues.
|
Does the null value in the dual table column having empty string as its name also apply if you assign the column a name? |
I'm not sure I understand your intention, but if you want to give an alias to the column name in the dual table, that operation is not available. |
This bug has been fixed and the fix is included in the version 1.14.1. |
Didn't I assign an alias to the column name in my original example? |
I verified that this issue is fixed in version 1.14.1:
Thank you! |
Why does
SELECT ''
result inNULL
rather than''
?For comparison, in both MySQL 5.7 and PostgreSQL 13,
SELECT ''
produces''
.The text was updated successfully, but these errors were encountered: