createStatement(); $sql = "LOCK TABLE " . $table . " WRITE"; $statement->executeUpdate($sql); } /** * Unlocks the specified table. * * @param Connection $con The Creole connection to use. * @param string $table The name of the table to unlock. * @throws SQLException No Statement could be created or * executed. */ public function unlockTable(Connection $con, $table) { $statement = $con->createStatement(); $statement->executeUpdate("UNLOCK TABLES"); } /** * @see DBAdapter::quoteIdentifier() */ public function quoteIdentifier($text) { return '`' . $text . '`'; } }