Skip to content
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

save_insert behaves unexpectedly #16

Closed
GoogleCodeExporter opened this issue Jun 3, 2015 · 3 comments
Closed

save_insert behaves unexpectedly #16

GoogleCodeExporter opened this issue Jun 3, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

save_insert attempts to insert a row with a value for all columns for the
row defined, even if the value is null. The following patch will only
insert values as called from save(), resulting in correct behavior for rows
specified NOT NULL. 

additionally, some debugging statements were left uncommented. these have
been commented accordingly.

Model.php.patch is a patch against r304

Original issue reported on code.google.com by casco...@gmail.com on 25 Nov 2008 at 8:41

Attachments:

@GoogleCodeExporter
Copy link
Author

Can you send this patch with more context ( svn diff --diff-cmd diff -x '-C 20' 
)

Also, it seems that the value of $newval in the new line 838 isn't used.

I've commented out the debugging lines, however, in r305.

Original comment by thwarted...@gmail.com on 28 Nov 2008 at 7:46

@GoogleCodeExporter
Copy link
Author

yeah i can confirm $newval does not get used. not sure what that is in there. i
attached a diff with more context.

Original comment by casco...@gmail.com on 28 Nov 2008 at 5:42

Attachments:

@GoogleCodeExporter
Copy link
Author

committed in r307

Original comment by thwarted...@gmail.com on 6 Dec 2008 at 1:37

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant