Skip to content

Commit 34dea8d

Browse files
committed
bugfix in copied records SQL generation
1 parent 6075fae commit 34dea8d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

js/query.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function querySave() {
123123
data = {'setNull':true, 'value':''};
124124
}
125125
ins_fields.push(DB.quote(f));
126-
ins_data.push( data.setNull ? NULL : DB.escape( data.value ) );
126+
ins_data.push( data.setNull ? "NULL" : DB.escape( data.value ) );
127127
} else if (typeof data == "object") {
128128
if (data.setNull)
129129
upd += DB.quote(f) + "=" + "NULL,";

0 commit comments

Comments
 (0)