diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-08-20 06:38:50 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-08-20 06:38:50 +0000 |
commit | 7178f2f99e813b2eb6926a562c1448dbc6b715e5 (patch) | |
tree | 38080358708c6edf14456e45ca6c70ed45616372 /includes | |
parent | 3646f8914f3c58a4c5178cf5db484cef246918fb (diff) | |
download | brdo-7178f2f99e813b2eb6926a562c1448dbc6b715e5.tar.gz brdo-7178f2f99e813b2eb6926a562c1448dbc6b715e5.tar.bz2 |
- Patch #79428 by Chris Johnson: remove int display width declarations from MySQL create table statements.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/install.mysql.inc | 2 | ||||
-rw-r--r-- | includes/install.mysqli.inc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/includes/install.mysql.inc b/includes/install.mysql.inc index 9db839263..9bab82c7a 100644 --- a/includes/install.mysql.inc +++ b/includes/install.mysql.inc @@ -54,7 +54,7 @@ function drupal_test_mysql($url, &$success) { $success = array('CONNECT'); // Test CREATE. - $query = 'CREATE TABLE drupal_install_test (id int(1) NULL)'; + $query = 'CREATE TABLE drupal_install_test (id int NULL)'; $result = mysql_query($query); if ($error = mysql_error()) { drupal_set_message(st('We were unable to create a test table on your MySQL database server with the command %query. MySQL reports the following message: %error.<ul><li>Are you sure the configured username has the necessary MySQL permissions to create tables in the database?</li></ul>For more help, see the <a href="http://drupal.org/node/258">Installation and upgrading handbook</a>. If you are unsure what these terms mean you should probably contact your hosting provider.', array('%query' => $query, '%error' => $error)), 'error'); diff --git a/includes/install.mysqli.inc b/includes/install.mysqli.inc index e1b5d34a6..087f1e9a4 100644 --- a/includes/install.mysqli.inc +++ b/includes/install.mysqli.inc @@ -54,7 +54,7 @@ function drupal_test_mysqli($url, &$success) { $success = array('CONNECT'); // Test CREATE. - $query = 'CREATE TABLE drupal_install_test (id int(1) NULL)'; + $query = 'CREATE TABLE drupal_install_test (id int NULL)'; $result = mysqli_query($connection, $query); if ($error = mysqli_error($connection)) { drupal_set_message(st('We were unable to create a test table on your MySQL database server with the command %query. MySQL reports the following message: %error.<ul><li>Are you sure the configured username has the necessary MySQL permissions to create tables in the database?</li></ul>For more help, see the <a href="http://drupal.org/node/258">Installation and upgrading handbook</a>. If you are unsure what these terms mean you should probably contact your hosting provider.', array('%query' => $query, '%error' => $error)), 'error'); |