From a0af4c4ddaef50981ddc5b5543875ad6e3f6339e Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Wed, 10 Aug 2016 12:07:52 +0200 Subject: fix utf8 warnings for latin1 selects --- it_dbi.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/it_dbi.class b/it_dbi.class index 1022827..77e4615 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -454,7 +454,7 @@ function query($query, $p = array()) $p += $this->_p; $start = gettimeofday(true); - if (!it::match('^(EXPLAIN|SELECT|SHOW)', $query)) + if (!it::match('^(EXPLAIN|SELECT|SHOW)', $query, array('utf8' => false))) { if ($p['server_update']) { @@ -487,7 +487,7 @@ function query($query, $p = array()) if (!$result) $this->_fatal("query(\"$query\") failed"); } - else if (it::match('^(CREATE|ALTER|DROP) ', $query)) + else if (it::match('^(CREATE|ALTER|DROP) ', $query, array('utf8' => false))) { # Purge cache for schema changes (after modifying table) $dbid = "{$p['user']}@{$p['server']}:{$p['db']}"; -- cgit v1.2.3