RaiseError => 1, AutoCommit => 1, ShowErrorStatement => 1, quote_names => 1, quote_identifiers => 1, mysql_enable_utf8 => 1, on_connect_call => 'set_strict_mode',
Without that last 'set_strict_mode', mysql does all sorts of horrible things like silently truncating strings or inserting zeroes into datetime fields. I think it also controls whether the identifier-quoting character is MySQL's backquote or the SQL standard doublequote.
It does what you expect in your database browser app probably because that app initializes the connection differently.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Need advice how to diagnose the problem when syntax using MAX() is correct according to MySQL monitor, but errors out in DBI
by ysth (Canon) on Nov 23, 2025 at 02:10 UTC | |
|
Re^2: Need advice how to diagnose the problem when syntax using MAX() is correct according to MySQL monitor, but errors out in DBI
by dissident (Beadle) on Nov 23, 2025 at 15:22 UTC | |
by ysth (Canon) on Nov 23, 2025 at 17:18 UTC | |
by ysth (Canon) on Nov 23, 2025 at 17:49 UTC |