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 : https://code.google.com/p/haxe/issues/detail?id=514] by xylo...@gmail.com, at 23/09/2011, 20:36:09 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 :
Please provide any additional information below.