{snip]
When I try and insert a string into an integer field, instead of throwing
an error MySQL accepts the insert and set that field's value to zero (I
assume default value).  I am using the php mysql module by the way (not
PEAR).  I would like to get an error when I insert the wrong data type into
a column.  Is this something I need to setup in MySQL or is the fault of
the PHP MySQL module?
[/snip]

This is default behavior for MySQL. It will give a warning, but not an
error. If memory serves there is nothing in the setup that will change this
behavior.

Jay Blanchard



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to