Same name and namespace in other branches
  1. 4.6.x database/updates.inc \update_sql()
  2. 4.7.x update.php \update_sql()
  3. 6.x includes/database.inc \update_sql()
78 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.
system_update_1000 in modules/system/system.install

... See full list

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),
  );
}