summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Gass2016-08-10 12:07:52 +0200
committerNathan Gass2016-08-10 12:19:08 +0200
commita0af4c4ddaef50981ddc5b5543875ad6e3f6339e (patch)
tree5e2578499754ddc065f3e13ae8832d7c456d2934
parent66d93756b9baa30b1093a9e6dae913874b3aeb0f (diff)
downloaditools-a0af4c4ddaef50981ddc5b5543875ad6e3f6339e.tar.gz
itools-a0af4c4ddaef50981ddc5b5543875ad6e3f6339e.tar.bz2
itools-a0af4c4ddaef50981ddc5b5543875ad6e3f6339e.zip
fix utf8 warnings for latin1 selects
-rw-r--r--it_dbi.class4
1 files 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']}";