function update_sql in Drupal 4
Same name and namespace in other branches
- 5 update.php \update_sql()
- 6 includes/database.inc \update_sql()
62 calls to update_sql()
- db_add_column in ./
update.php - Add a column to a database using syntax appropriate for PostgreSQL. Save result of SQL commands in $ret array.
- db_change_column in ./
update.php - Change a column definition using syntax appropriate for PostgreSQL. Save result of SQL commands in $ret array.
- system_update_110 in database/
updates.inc - system_update_111 in database/
updates.inc - system_update_112 in database/
updates.inc
File
- ./
update.php, line 20 - Administrative page for handling updates from one Drupal version to another.
Code
function update_sql($sql) {
$result = db_query($sql);
return array(
'success' => $result !== FALSE,
'query' => check_plain($sql),
);
}