summaryrefslogtreecommitdiff
path: root/it_dbi.class
diff options
context:
space:
mode:
authorUrban Müller2016-06-21 15:27:33 +0200
committerUrban Müller2016-06-21 15:27:33 +0200
commit01f739592ce97aa71ff7807af55d45055220ab2b (patch)
treecd84f4e2188067374945d9ad441e1a3345b499f2 /it_dbi.class
parent7731c755f49aef62f622f53662f9bda384b19d58 (diff)
downloaditools-01f739592ce97aa71ff7807af55d45055220ab2b.tar.gz
itools-01f739592ce97aa71ff7807af55d45055220ab2b.tar.bz2
itools-01f739592ce97aa71ff7807af55d45055220ab2b.zip
consistent matching func, typo fix
Diffstat (limited to 'it_dbi.class')
-rw-r--r--it_dbi.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it_dbi.class b/it_dbi.class
index d5607ca..d7d0d79 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -486,7 +486,7 @@ function query($query, $p = array())
if (!$result)
$this->_fatal("query(\"$query\") failed");
}
- else if (preg_match('/^(CREATE|ALTER|DROP) /i', $query))
+ else if (it::match('^(CREATE|ALTER|DROP) ', $query))
{
# Purge cache for schema changes (after modifying table)
$dbid = "{$p['user']}@{$p['server']}:{$p['db']}";
@@ -688,7 +688,7 @@ function insert($tags = array(), $command = "INSERT")
/**
- * Replqace a record in a table
+ * Replace a record in a table
* @param $tags Additional key => value pairs
* Does not destroy internal state of last select() call
* @see insert()