-
Notifications
You must be signed in to change notification settings - Fork 52
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
BUG: DataSet::parseData() disregards valid content due to empty check #488
Comments
That's basically the same spot like reported for the |
I don't get it: |
Just to complete the picture here. Yes, said table has a uid but it's not under test in my case, therefore I don't care what uid the records have. Only interesting column is However, that's not the point here. A silently failing parser, that drops syntactically correct csv data, is. That's the issue for my customer. Me digging half an hour or more into this for nothing. Please remember, people have to pay our work and as hard as TDD is to sell, this is just unnecessary water to the mills for the "we don't pay tests" faction. |
A DB column value "0" is a perfectly valid value and should not be considered to be empty. Particularly, having a "0" value as the first value in a DB row in a CSV file should still allow the DB row to get importet. (In general, `empty()` in PHP behaves in mysterious ways and should be avoided in favor of more explicit and human-predicable checks.) Fixes TYPO3#488 Releases: main, 7, 6
A DB column value "0" is a perfectly valid value and should not be considered to be empty. Particularly, having a "0" value as the first value in a DB row in a CSV file should still allow the DB row to get importet. (In general, `empty()` in PHP behaves in mysterious ways and should be avoided in favor of more explicit and human-predicable checks.) Fixes #488 Releases: main, 7, 6
A DB column value "0" is a perfectly valid value and should not be considered to be empty. Particularly, having a "0" value as the first value in a DB row in a CSV file should still allow the DB row to get importet. (In general, `empty()` in PHP behaves in mysterious ways and should be avoided in favor of more explicit and human-predicable checks.) Fixes #488 Releases: main, 7, 6
A DB column value "0" is a perfectly valid value and should not be considered to be empty. Particularly, having a "0" value as the first value in a DB row in a CSV file should still allow the DB row to get importet. (In general, `empty()` in PHP behaves in mysterious ways and should be avoided in favor of more explicit and human-predicable checks.) Fixes #488 Releases: main, 7, 6
A DB column value "0" is a perfectly valid value and should not be considered to be empty. Particularly, having a "0" value as the first value in a DB row in a CSV file should still allow the DB row to get importet. (In general, `empty()` in PHP behaves in mysterious ways and should be avoided in favor of more explicit and human-predicable checks.) Fixes #488 Releases: main, 7, 6
A DB column value "0" is a perfectly valid value and should not be considered to be empty. Particularly, having a "0" value as the first value in a DB row in a CSV file should still allow the DB row to get importet. (In general, `empty()` in PHP behaves in mysterious ways and should be avoided in favor of more explicit and human-predicable checks.) Fixes #488 Releases: main, 7, 6
Hi,
in one of my tests I need to import
sys_file_metadata
fixtures. As said table, does not have auid
column, my csv looked as such:I realized that my fixtures aren't imported due to an
empty
-check in the parser:testing-framework/Classes/Core/Functional/Framework/DataHandling/DataSet.php
Line 228 in 0f64df7
I guess it would be better to compare against an empty string here because
"0"
is considered empty but it is a valid value.Have a good one.
Related to #451
The text was updated successfully, but these errors were encountered: