-
Notifications
You must be signed in to change notification settings - Fork 14
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
Postgresql CSV upload with Boolean field generates error #228
Comments
Could you please provide your |
Hi, Sorry for the belated response .. RL got in the way. I altered the beershop to include an active flag and updated to the latest versions of packages. https://github.com/sedacrivity/pg-beershop/tree/SDS-Active To my surprise this deploys 'fine' - the boolean column is added and the adjusted CSV data is uploaded without issues. @cap-js/postgres: 1.2.1 So will recheck my project. Thanks, Steven |
After updating my project to the latest versions, I still had the same issue. So comparing the CSV file again I could not see any differences within the actual data - compared with the brewery project. Then I did notice a difference - the header ! My boolean field name 'active' was spelled with an uppercase. ID;Active;Title When I change it to lower case, the deploy works fine and data is uploaded ! So somehow the boolean header field is affected by 'lower/upper case' differences while for other fields -like 'Title' - it does not seem to make a difference ? Second 'issue' I noticed is that the actual value 'True' is now accepted but not converted into a boolean value. It needs to be lower case apparently. Kind Regards, Steven |
Hi @sedacrivity w.r.t. your first issue, this is a known limitation at the moment, see #92. As of now, the csv headers must match the column names in case. We are discussing this and will track the progress in the other issue. @BobdenOs could you say something to the second inquiry:
|
When doing a deploy which includes CSV with data, we are getting the following error back:
CDS output
DB output:
The CSV data file deploys fine on HANA and has not changed:
I tried changing into lower case values for the boolean but that doesn't make a difference.
The text was updated successfully, but these errors were encountered: