Attempt to set an optional field of an spod object to null.
Update the object in the db.
What is the expected output? What do you see instead?
I expect for the code to update the db. Instead I get:
"Error while executing UPDATE spod SET optfield = WHERE id = 1 ..."
Please complete the following class with minimal code reproducing theproblem :
class Test {static function main() {
//... setup database and assume there is Spod.hx
var obj = Spod.manager.get(1);
obj.optfield = null;
obj.update(); //Throws sql error
}}
[Google Issue #514 : http://code.google.com/haxe/issues/detail?id=514] by xylo...@gmail.com, at 2011-09-23T20:36:09.000Z What steps will reproduce the problem?
What is the expected output? What do you see instead?
I expect for the code to update the db. Instead I get:
"Error while executing UPDATE spod SET optfield = WHERE id = 1 ..."
Please complete the following class with minimal code reproducing the problem :
class Test { static function main() { //... setup database and assume there is Spod.hx var obj = Spod.manager.get(1); obj.optfield = null; obj.update(); //Throws sql error } }
Please provide any additional information below.