Re: [PHP-DB] Re: PDO Mysql data truncation missing error

2012-08-21 Thread Karl DeSaulniers
On Aug 21, 2012, at 3:44 PM, Matt Pelmear wrote: Amit, Thanks for the suggestion. Unfortunately, even when I explicitly enable E_WARNING or even E_ALL error reporting in php I still do not receive any indication that data was truncated on insert. -Matt On 08/21/2012 07:09 AM, Amit Tando

Re: [PHP-DB] Re: PDO Mysql data truncation missing error

2012-08-21 Thread Bastien Koert
On Tue, Aug 21, 2012 at 4:44 PM, Matt Pelmear wrote: > Amit, > > Thanks for the suggestion. Unfortunately, even when I explicitly enable > E_WARNING or even E_ALL error reporting in php I still do not receive any > indication that data was truncated on insert. > > -Matt > > > On 08/21/2012 07:09 A

Re: [PHP-DB] Re: PDO Mysql data truncation missing error

2012-08-21 Thread Matt Pelmear
Amit, Thanks for the suggestion. Unfortunately, even when I explicitly enable E_WARNING or even E_ALL error reporting in php I still do not receive any indication that data was truncated on insert. -Matt On 08/21/2012 07:09 AM, Amit Tandon wrote: Dear Matt, Even with MySQL, u get the warn

Re: [PHP-DB] Re: PDO Mysql data truncation missing error

2012-08-21 Thread Amit Tandon
Dear Matt, Even with MySQL, u get the warning as the show warnings is enabled. With php bound scripts, you have to check warnings to see the warnings. However, php is quite flexible and you an use error_reporting(E_WARNING) for non-fatal error reporting regds amit On Aug 21, 2012 10:41 AM, "Matt

Re: [PHP-DB] Re: PDO Mysql data truncation missing error

2012-08-20 Thread Matt Pelmear
On 08/21/2012 01:08 AM, David Robley wrote: Matt Pelmear wrote: Hello, I'm trying to detect data truncation on insert to MySQL using PDO. As far as I can tell, this gets reported at least in some cases (ex: http://drupal.org/node/1528628), but I have been unable to see this myself. The test

[PHP-DB] Re: PDO Mysql data truncation missing error

2012-08-20 Thread David Robley
Matt Pelmear wrote: > Hello, > > I'm trying to detect data truncation on insert to MySQL using PDO. > > As far as I can tell, this gets reported at least in some cases (ex: > http://drupal.org/node/1528628), but I have been unable to see this > myself. > > The test table I'm using has a column