function db_lock_table in Drupal 6
Same name in this branch
- 6 includes/database.mysqli.inc \db_lock_table()
- 6 includes/database.mysql.inc \db_lock_table()
- 6 includes/database.pgsql.inc \db_lock_table()
Same name and namespace in other branches
- 4 includes/database.mysqli.inc \db_lock_table()
- 4 includes/database.mysql.inc \db_lock_table()
- 4 includes/database.pgsql.inc \db_lock_table()
- 5 includes/database.mysqli.inc \db_lock_table()
- 5 includes/database.mysql.inc \db_lock_table()
- 5 includes/database.pgsql.inc \db_lock_table()
Lock a table.
Related topics
File
- includes/
database.mysqli.inc, line 335 - Database interface code for MySQL database servers using the mysqli client libraries. mysqli is included in PHP 5 by default and allows developers to use the advanced features of MySQL 4.1.x, 5.0.x and beyond.
Code
function db_lock_table($table) {
db_query('LOCK TABLES {' . db_escape_table($table) . '} WRITE');
}