diff options
-rw-r--r-- | it_dbi.class | 4 |
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() |