We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Issued an INSERT with an NSNull.null value for an INT field.
A zero value was inserted into the INT field rather than NULL. Note that the field allows for NULL values.
I expected the field to contain NULL (no value).
Don't have a demo project yet. The INSERT code is pretty simple:
NSDictionary<NSString*, id> *d = [NSDictionary dictionaryWithObjectsAndKeys: "Bob", @"user", [NSDate date], @"modified", NSNull.null, @"rec_no", nil];
OHMySQLQueryRequest *request = [OHMySQLQueryRequestFactory INSERT:@"Log" set:d];
and then passed the request to an OHMySQLQueryContext.
The text was updated successfully, but these errors were encountered:
Thanks for good report.
Sorry, something went wrong.
oleghnidets
No branches or pull requests
What did you do?
Issued an INSERT with an NSNull.null value for an INT field.
What happened instead?
A zero value was inserted into the INT field rather than NULL. Note that the field allows for NULL values.
What did you expect?
I expected the field to contain NULL (no value).
OHMySQL Environment
Demo Project
Don't have a demo project yet. The INSERT code is pretty simple:
NSDictionary<NSString*, id> *d = [NSDictionary dictionaryWithObjectsAndKeys:
"Bob", @"user",
[NSDate date], @"modified",
NSNull.null, @"rec_no",
nil];
OHMySQLQueryRequest *request = [OHMySQLQueryRequestFactory INSERT:@"Log" set:d];
and then passed the request to an OHMySQLQueryContext.
The text was updated successfully, but these errors were encountered: