diff options
author | Urban Müller | 2016-06-21 15:27:33 +0200 |
---|---|---|
committer | Urban Müller | 2016-06-21 15:27:33 +0200 |
commit | 01f739592ce97aa71ff7807af55d45055220ab2b (patch) | |
tree | cd84f4e2188067374945d9ad441e1a3345b499f2 | |
parent | 7731c755f49aef62f622f53662f9bda384b19d58 (diff) | |
download | itools-01f739592ce97aa71ff7807af55d45055220ab2b.tar.gz itools-01f739592ce97aa71ff7807af55d45055220ab2b.tar.bz2 itools-01f739592ce97aa71ff7807af55d45055220ab2b.zip |
consistent matching func, typo fix
-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() |