From 01f739592ce97aa71ff7807af55d45055220ab2b Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 21 Jun 2016 15:27:33 +0200 Subject: consistent matching func, typo fix --- it_dbi.class | 4 ++-- 1 file 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() -- cgit v1.2.3