-
Notifications
You must be signed in to change notification settings - Fork 39
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
Fix SQL argument growth condition #220
Conversation
…checking against master).
Fix SQL argument growth condition
Remove debug data
+dj/Relvar.m
Outdated
@@ -215,35 +215,36 @@ function insert(self, tuples, command) | |||
% value: <var> Processed, in-place value ready for insert. | |||
% placeholder:<string> Placeholder for argument substitution. | |||
% attr_idx: <num> Attribute order index. | |||
if header.attributes(attr_idx).isString | |||
if isempty(value) || (header.attributes(attr_idx).isNumeric && isnan(value)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about an empty string? I will review this more carefully later tonight. But keep in mind that empty strings are distinct from null
. This looks as though empty strings will be entered as null.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, I will review/test it once more too. How are nulls expected to return from a fetch for the common datatypes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed
Update logic to be more directly mindful of placeholder substitution
Simplify logic
Fix #217