Re: Varchar limit warning

2007-01-05 Thread Gabriel PREDA
Complementary to what Donna said, You can issue a SHOW WARNINGS sql after some of these queries... the "cutt-off" will be listed there ! You will get a mysql_result in the form: Level - Code - Message Warning - 1265 - Data truncated for column 'column_name' at row X. Gabriel PREDA On 1/5/07,

RE: Varchar limit warning - similar question

2007-01-05 Thread Jerry Schwartz
l Information Incorporated 195 Farmington Ave. Farmington, CT 06032 860.674.8796 / FAX: 860.674.8341 > -Original Message- > From: Olaf Stein [mailto:[EMAIL PROTECTED] > Sent: Friday, January 05, 2007 2:26 PM > To: Jerry Schwartz > Subject: Re: Varchar limit warning - simila

RE: Varchar limit warning - similar question

2007-01-05 Thread Jerry Schwartz
06032 860.674.8796 / FAX: 860.674.8341 > -Original Message- > From: Olaf Stein [mailto:[EMAIL PROTECTED] > Sent: Friday, January 05, 2007 1:52 PM > To: [EMAIL PROTECTED] > Cc: MySql > Subject: Re: Varchar limit warning - similar question > > Thanks > That works nicely

Re: Varchar limit warning - similar question

2007-01-05 Thread Olaf Stein
Sorry, wrong example For instance, it makes no difference regarding the values I can enter if I declare a field as int or int(3) On 1/5/07 1:52 PM, "Olaf Stein" <[EMAIL PROTECTED]> wrote: > Thanks > That works nicely. > > Why does that not have any effect with numeric values. > E.g. I can inse

Re: Varchar limit warning - similar question

2007-01-05 Thread Olaf Stein
Thanks That works nicely. Why does that not have any effect with numeric values. E.g. I can insert the same max numbers in a tinyint column then in a tinyint(1) column, For example, how do I create a column that only allows 1 numeric value from 0 to 5? Thanks Olaf On 1/5/07 12:52 PM, "[EMAIL

Re: Varchar limit warning

2007-01-05 Thread ddevaudreuil
You need to set the sql_mode to STRICT_TRANS_TABLES or STRICT_ALL_TABLES. We set this for the server in the my.cnf file. Be careful, though, because there are some third-party GUI clients that don't read the my.cnf file and thus don't set the sql_mode to what you expect. In that case, set it