function update_sql in Drupal 5
Same name and namespace in other branches
- 4 update.php \update_sql()
- 6 includes/database.inc \update_sql()
81 calls to update_sql()
- blogapi_update_5000 in modules/
blogapi/ blogapi.install - Add blogapi_files table to enable size restriction for BlogAPI file uploads.
- 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.
- locale_update_1 in modules/
locale/ locale.install - Neutralize unsafe language names in the database.
- statistics_update_1000 in modules/
statistics/ statistics.install - Changes session ID field to VARCHAR(64) to add support for SHA-1 hashes.
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),
);
}