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
MySQL empty text/blob #69
Comments
--- poco-1.4.6-all.original/Data/MySQL/src/Extractor.cpp 2013-01-18 17:53:20.461811217 -0200
+++ poco-1.4.6-all/Data/MySQL/src/Extractor.cpp 2013-01-18 17:51:59.145814212 -0200
@@ -158,6 +158,9 @@
if ( ! _stmt.fetchColumn(pos, &bind) )
return false;
+ if ( ! length )
+ return true;
+
std::vector<char> data(length);
bind.buffer = &data[0];
bind.buffer_length= length; |
Did you re-run the whole testsuite after this fix? |
It looks right for 1.4.6. This has changed quite a bit in 1.5; no need for a fix there. |
Sorry for a late response. |
Re-assigning this to Günter. |
@obiltschnig: any plans for including this in 1.4.x? |
missed this for 1.4.6. Will be in next 1.4.x release (if there's one...) |
Assertion violation in debug binary with empty text field:
Assertion violation: pChar in file ".../poco-1.4.6-all/Data/include/Poco/Data/BLOB.h", line 180
The text was updated successfully, but these errors were encountered: