Fixed minor coding style issues

This commit is contained in:
Alexander Makarov
2014-02-01 01:18:38 +04:00
parent 2926a5e16f
commit b21fd298c5
3 changed files with 4 additions and 2 deletions

View File

@@ -111,9 +111,9 @@ class QueryBuilder extends \yii\db\QueryBuilder
$value = (int)$value - 1;
}
try {
// it's possible sqlite_sequence does not exist
$db->createCommand("UPDATE sqlite_sequence SET seq='$value' WHERE name='{$table->name}'")->execute();
} catch (Exception $e) {
// it's possible that sqlite_sequence does not exist
}
} elseif ($table === null) {
throw new InvalidParamException("Table not found: $tableName");