drupal_set_message(st('Failure to connect to your MySQL database server. MySQL reports the following message: %error.<ul><li>Are you sure you have the correct username and password?</li><li>Are you sure that you have typed the correct database hostname?</li><li>Are you sure that the database server is running?</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('%error'=>mysql_error())),'error');
drupal_set_message(st('Failed to connect to your MySQL database server. MySQL reports the following message: %error.<ul><li>Are you sure you have the correct username and password?</li><li>Are you sure that you have typed the correct database hostname?</li><li>Are you sure that the database server is running?</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('%error'=>mysql_error())),'error');
returnFALSE;
returnFALSE;
}
}
// Test selecting the database.
// Test selecting the database.
if(!mysql_select_db(substr($url['path'],1))){
if(!mysql_select_db(substr($url['path'],1))){
drupal_set_message(st('We were able to connect to the MySQL database server (which means your username and password are valid) but not able to select your database. MySQL reports the following message: %error.<ul><li>Are you sure you have the correct database name?</li><li>Are you sure the database exists?</li><li>Are you sure the username has permission to access 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('%error'=>mysql_error())),'error');
drupal_set_message(st('Failed to select your database on your MySQL database server, which means the connection username and password are valid, but there is a problem accessing your data. MySQL reports the following message: %error.<ul><li>Are you sure you have the correct database name?</li><li>Are you sure the database exists?</li><li>Are you sure the username has permission to access 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('%error'=>mysql_error())),'error');
returnFALSE;
returnFALSE;
}
}
...
@@ -57,7 +57,7 @@ function drupal_test_mysql($url, &$success) {
...
@@ -57,7 +57,7 @@ function drupal_test_mysql($url, &$success) {
$query='CREATE TABLE drupal_install_test (id int NULL)';
$query='CREATE TABLE drupal_install_test (id int NULL)';
$result=mysql_query($query);
$result=mysql_query($query);
if($error=mysql_error()){
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');
drupal_set_message(st('Failed 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');
returnFALSE;
returnFALSE;
}
}
$err=FALSE;
$err=FALSE;
...
@@ -68,7 +68,7 @@ function drupal_test_mysql($url, &$success) {
...
@@ -68,7 +68,7 @@ function drupal_test_mysql($url, &$success) {
$query='INSERT INTO drupal_install_test (id) VALUES (1)';
$query='INSERT INTO drupal_install_test (id) VALUES (1)';
$result=mysql_query($query);
$result=mysql_query($query);
if($error=mysql_error()){
if($error=mysql_error()){
drupal_set_message(st('We were unable to insert a value into a test table on your MySQL database server. We tried inserting a value with the command %query and MySQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
drupal_set_message(st('Failed to insert a value into a test table on your MySQL database server. We tried inserting a value with the command %query and MySQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
$err=TRUE;
$err=TRUE;
}
}
else{
else{
...
@@ -79,7 +79,7 @@ function drupal_test_mysql($url, &$success) {
...
@@ -79,7 +79,7 @@ function drupal_test_mysql($url, &$success) {
$query='UPDATE drupal_install_test SET id = 2';
$query='UPDATE drupal_install_test SET id = 2';
$result=mysql_query($query);
$result=mysql_query($query);
if($error=mysql_error()){
if($error=mysql_error()){
drupal_set_message(st('We were unable to update a value in a test table on your MySQL database server. We tried updating a value with the command %query and MySQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
drupal_set_message(st('Failed to update a value in a test table on your MySQL database server. We tried updating a value with the command %query and MySQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
$err=TRUE;
$err=TRUE;
}
}
else{
else{
...
@@ -90,7 +90,7 @@ function drupal_test_mysql($url, &$success) {
...
@@ -90,7 +90,7 @@ function drupal_test_mysql($url, &$success) {
$query='LOCK TABLES drupal_install_test WRITE';
$query='LOCK TABLES drupal_install_test WRITE';
$result=mysql_query($query);
$result=mysql_query($query);
if($error=mysql_error()){
if($error=mysql_error()){
drupal_set_message(st('We were unable to lock a test table on your MySQL database server. We tried locking a table with the command %query and MySQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
drupal_set_message(st('Failed to lock a test table on your MySQL database server. We tried locking a table with the command %query and MySQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
$err=TRUE;
$err=TRUE;
}
}
else{
else{
...
@@ -101,7 +101,7 @@ function drupal_test_mysql($url, &$success) {
...
@@ -101,7 +101,7 @@ function drupal_test_mysql($url, &$success) {
$query='UNLOCK TABLES';
$query='UNLOCK TABLES';
$result=mysql_query($query);
$result=mysql_query($query);
if($error=mysql_error()){
if($error=mysql_error()){
drupal_set_message(st('We were unable to unlock a test table on your MySQL database server. We tried unlocking a table with the command %query and MySQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
drupal_set_message(st('Failed to unlock a test table on your MySQL database server. We tried unlocking a table with the command %query and MySQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
$err=TRUE;
$err=TRUE;
}
}
else{
else{
...
@@ -112,7 +112,7 @@ function drupal_test_mysql($url, &$success) {
...
@@ -112,7 +112,7 @@ function drupal_test_mysql($url, &$success) {
$query='DELETE FROM drupal_install_test';
$query='DELETE FROM drupal_install_test';
$result=mysql_query($query);
$result=mysql_query($query);
if($error=mysql_error()){
if($error=mysql_error()){
drupal_set_message(st('We were unable to delete a value from a test table on your MySQL database server. We tried deleting a value with the command %query and MySQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
drupal_set_message(st('Failed to delete a value from a test table on your MySQL database server. We tried deleting a value with the command %query and MySQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
$err=TRUE;
$err=TRUE;
}
}
else{
else{
...
@@ -123,7 +123,7 @@ function drupal_test_mysql($url, &$success) {
...
@@ -123,7 +123,7 @@ function drupal_test_mysql($url, &$success) {
$query='DROP TABLE drupal_install_test';
$query='DROP TABLE drupal_install_test';
$result=mysql_query($query);
$result=mysql_query($query);
if($error=mysql_error()){
if($error=mysql_error()){
drupal_set_message(st('We were unable to drop a test table from your MySQL database server. We tried dropping a table with the command %query and MySQL reported the following error %error.',array('%query'=>$query,'%error'=>$error)),'error');
drupal_set_message(st('Failed to drop a test table from your MySQL database server. We tried dropping a table with the command %query and MySQL reported the following error %error.',array('%query'=>$query,'%error'=>$error)),'error');
drupal_set_message(st('Failure to connect to your MySQL database server. MySQL reports the following message: %error.<ul><li>Are you sure you have the correct username and password?</li><li>Are you sure that you have typed the correct database hostname?</li><li>Are you sure that the database server is running?</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('%error'=>mysqli_connect_error())),'error');
drupal_set_message(st('Failed to connect to your MySQL database server. MySQL reports the following message: %error.<ul><li>Are you sure you have the correct username and password?</li><li>Are you sure that you have typed the correct database hostname?</li><li>Are you sure that the database server is running?</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('%error'=>mysqli_connect_error())),'error');
returnFALSE;
returnFALSE;
}
}
// Test selecting the database.
// Test selecting the database.
if(mysqli_connect_errno()>0){
if(mysqli_connect_errno()>0){
drupal_set_message(st('We were able to connect to the MySQL database server (which means your username and password are valid) but not able to select your database. MySQL reports the following message: %error.<ul><li>Are you sure you have the correct database name?</li><li>Are you sure the database exists?</li><li>Are you sure the username has permission to access 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('%error'=>mysqli_connect_error())),'error');
drupal_set_message(st('Failed to select your database on your MySQL database server, which means the connection username and password are valid, but there is a problem accessing your data. MySQL reports the following message: %error.<ul><li>Are you sure you have the correct database name?</li><li>Are you sure the database exists?</li><li>Are you sure the username has permission to access 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('%error'=>mysqli_connect_error())),'error');
returnFALSE;
returnFALSE;
}
}
...
@@ -52,7 +52,7 @@ function drupal_test_mysqli($url, &$success) {
...
@@ -52,7 +52,7 @@ function drupal_test_mysqli($url, &$success) {
$query='CREATE TABLE drupal_install_test (id int NULL)';
$query='CREATE TABLE drupal_install_test (id int NULL)';
$result=mysqli_query($connection,$query);
$result=mysqli_query($connection,$query);
if($error=mysqli_error($connection)){
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');
drupal_set_message(st('Failed 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');
returnFALSE;
returnFALSE;
}
}
$err=FALSE;
$err=FALSE;
...
@@ -63,7 +63,7 @@ function drupal_test_mysqli($url, &$success) {
...
@@ -63,7 +63,7 @@ function drupal_test_mysqli($url, &$success) {
$query='INSERT INTO drupal_install_test (id) VALUES (1)';
$query='INSERT INTO drupal_install_test (id) VALUES (1)';
$result=mysqli_query($connection,$query);
$result=mysqli_query($connection,$query);
if($error=mysqli_error($connection)){
if($error=mysqli_error($connection)){
drupal_set_message(st('We were unable to insert a value into a test table on your MySQL database server. We tried inserting a value with the command %query and MySQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
drupal_set_message(st('Failed to insert a value into a test table on your MySQL database server. We tried inserting a value with the command %query and MySQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
$err=TRUE;
$err=TRUE;
}
}
else{
else{
...
@@ -74,7 +74,7 @@ function drupal_test_mysqli($url, &$success) {
...
@@ -74,7 +74,7 @@ function drupal_test_mysqli($url, &$success) {
$query='UPDATE drupal_install_test SET id = 2';
$query='UPDATE drupal_install_test SET id = 2';
$result=mysqli_query($connection,$query);
$result=mysqli_query($connection,$query);
if($error=mysqli_error($connection)){
if($error=mysqli_error($connection)){
drupal_set_message(st('We were unable to update a value in a test table on your MySQL database server. We tried updating a value with the command %query and MySQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
drupal_set_message(st('Failed to update a value in a test table on your MySQL database server. We tried updating a value with the command %query and MySQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
$err=TRUE;
$err=TRUE;
}
}
else{
else{
...
@@ -85,7 +85,7 @@ function drupal_test_mysqli($url, &$success) {
...
@@ -85,7 +85,7 @@ function drupal_test_mysqli($url, &$success) {
$query='LOCK TABLES drupal_install_test WRITE';
$query='LOCK TABLES drupal_install_test WRITE';
$result=mysqli_query($connection,$query);
$result=mysqli_query($connection,$query);
if($error=mysqli_error($connection)){
if($error=mysqli_error($connection)){
drupal_set_message(st('We were unable to lock a test table on your MySQL database server. We tried locking a table with the command %query and MySQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
drupal_set_message(st('Failed to lock a test table on your MySQL database server. We tried locking a table with the command %query and MySQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
$err=TRUE;
$err=TRUE;
}
}
else{
else{
...
@@ -96,7 +96,7 @@ function drupal_test_mysqli($url, &$success) {
...
@@ -96,7 +96,7 @@ function drupal_test_mysqli($url, &$success) {
$query='UNLOCK TABLES';
$query='UNLOCK TABLES';
$result=mysqli_query($connection,$query);
$result=mysqli_query($connection,$query);
if($error=mysqli_error($connection)){
if($error=mysqli_error($connection)){
drupal_set_message(st('We were unable to unlock a test table on your MySQL database server. We tried unlocking a table with the command %query and MySQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
drupal_set_message(st('Failed to unlock a test table on your MySQL database server. We tried unlocking a table with the command %query and MySQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
$err=TRUE;
$err=TRUE;
}
}
else{
else{
...
@@ -107,7 +107,7 @@ function drupal_test_mysqli($url, &$success) {
...
@@ -107,7 +107,7 @@ function drupal_test_mysqli($url, &$success) {
$query='DELETE FROM drupal_install_test';
$query='DELETE FROM drupal_install_test';
$result=mysqli_query($connection,$query);
$result=mysqli_query($connection,$query);
if($error=mysqli_error($connection)){
if($error=mysqli_error($connection)){
drupal_set_message(st('We were unable to delete a value from a test table on your MySQL database server. We tried deleting a value with the command %query and MySQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
drupal_set_message(st('Failed to delete a value from a test table on your MySQL database server. We tried deleting a value with the command %query and MySQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
$err=TRUE;
$err=TRUE;
}
}
else{
else{
...
@@ -118,7 +118,7 @@ function drupal_test_mysqli($url, &$success) {
...
@@ -118,7 +118,7 @@ function drupal_test_mysqli($url, &$success) {
$query='DROP TABLE drupal_install_test';
$query='DROP TABLE drupal_install_test';
$result=mysqli_query($connection,$query);
$result=mysqli_query($connection,$query);
if($error=mysqli_error($connection)){
if($error=mysqli_error($connection)){
drupal_set_message(st('We were unable to drop a test table from your MySQL database server. We tried dropping a table with the command %query and MySQL reported the following error %error.',array('%query'=>$query,'%error'=>$error)),'error');
drupal_set_message(st('Failed to drop a test table from your MySQL database server. We tried dropping a table with the command %query and MySQL reported the following error %error.',array('%query'=>$query,'%error'=>$error)),'error');
@@ -48,7 +48,7 @@ function drupal_test_pgsql($url, &$success) {
...
@@ -48,7 +48,7 @@ function drupal_test_pgsql($url, &$success) {
// Test connecting to the database.
// Test connecting to the database.
$connection=@pg_connect($conn_string);
$connection=@pg_connect($conn_string);
if(!$connection){
if(!$connection){
drupal_set_message(st('Failure to connect to your PostgreSQL database server. PostgreSQL reports the following message: %error.<ul><li>Are you sure you have the correct username and password?</li><li>Are you sure that you have typed the correct database hostname?</li><li>Are you sure that the database server is running?</li><li>Are you sure you typed the correct database name?</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('%error'=>'Connection failed. See log file for failure reason')),'error');
drupal_set_message(st('Failed to connect to your PostgreSQL database server. PostgreSQL reports the following message: %error.<ul><li>Are you sure you have the correct username and password?</li><li>Are you sure that you have typed the correct database hostname?</li><li>Are you sure that the database server is running?</li><li>Are you sure you typed the correct database name?</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('%error'=>'Connection failed. See log file for failure reason')),'error');
returnFALSE;
returnFALSE;
}
}
...
@@ -58,7 +58,7 @@ function drupal_test_pgsql($url, &$success) {
...
@@ -58,7 +58,7 @@ function drupal_test_pgsql($url, &$success) {
$query='CREATE TABLE drupal_install_test (id integer NOT NULL)';
$query='CREATE TABLE drupal_install_test (id integer NOT NULL)';
$result=pg_query($connection,$query);
$result=pg_query($connection,$query);
if($error=pg_result_error($result)){
if($error=pg_result_error($result)){
drupal_set_message(st('We were unable to create a test table on your PostgreSQL database server with the command %query. PostgreSQL reports the following message: %error.<ul><li>Are you sure the configured username has the necessary PostgreSQL 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');
drupal_set_message(st('Failed to create a test table on your PostgreSQL database server with the command %query. PostgreSQL reports the following message: %error.<ul><li>Are you sure the configured username has the necessary PostgreSQL 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');
returnFALSE;
returnFALSE;
}
}
$err=FALSE;
$err=FALSE;
...
@@ -69,7 +69,7 @@ function drupal_test_pgsql($url, &$success) {
...
@@ -69,7 +69,7 @@ function drupal_test_pgsql($url, &$success) {
$query='INSERT INTO drupal_install_test (id) VALUES (1)';
$query='INSERT INTO drupal_install_test (id) VALUES (1)';
$result=pg_query($connection,$query);
$result=pg_query($connection,$query);
if($error=pg_result_error($result)){
if($error=pg_result_error($result)){
drupal_set_message(st('We were unable to insert a value into a test table on your PostgreSQL database server. We tried inserting a value with the command %query and PostgreSQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
drupal_set_message(st('Failed to insert a value into a test table on your PostgreSQL database server. We tried inserting a value with the command %query and PostgreSQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
$err=TRUE;
$err=TRUE;
}
}
else{
else{
...
@@ -80,7 +80,7 @@ function drupal_test_pgsql($url, &$success) {
...
@@ -80,7 +80,7 @@ function drupal_test_pgsql($url, &$success) {
$query='UPDATE drupal_install_test SET id = 2';
$query='UPDATE drupal_install_test SET id = 2';
$result=pg_query($connection,$query);
$result=pg_query($connection,$query);
if($error=pg_result_error($result)){
if($error=pg_result_error($result)){
drupal_set_message(st('We were unable to update a value in a test table on your PostgreSQL database server. We tried updating a value with the command %query and PostgreSQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
drupal_set_message(st('Failed to update a value in a test table on your PostgreSQL database server. We tried updating a value with the command %query and PostgreSQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
$err=TRUE;
$err=TRUE;
}
}
else{
else{
...
@@ -91,7 +91,7 @@ function drupal_test_pgsql($url, &$success) {
...
@@ -91,7 +91,7 @@ function drupal_test_pgsql($url, &$success) {
$query='BEGIN; LOCK drupal_install_test IN SHARE ROW EXCLUSIVE MODE';
$query='BEGIN; LOCK drupal_install_test IN SHARE ROW EXCLUSIVE MODE';
$result=pg_query($connection,$query);
$result=pg_query($connection,$query);
if($error=pg_result_error($result)){
if($error=pg_result_error($result)){
drupal_set_message(st('We were unable to lock a test table on your PostgreSQL database server. We tried locking a table with the command %query and PostgreSQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
drupal_set_message(st('Failed to lock a test table on your PostgreSQL database server. We tried locking a table with the command %query and PostgreSQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
$err=TRUE;
$err=TRUE;
}
}
else{
else{
...
@@ -102,7 +102,7 @@ function drupal_test_pgsql($url, &$success) {
...
@@ -102,7 +102,7 @@ function drupal_test_pgsql($url, &$success) {
$query='COMMIT';
$query='COMMIT';
$result=pg_query($connection,$query);
$result=pg_query($connection,$query);
if($error=pg_result_error()){
if($error=pg_result_error()){
drupal_set_message(st('We were unable to unlock a test table on your PostgreSQL database server. We tried unlocking a table with the command %query and PostgreSQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
drupal_set_message(st('Failed to unlock a test table on your PostgreSQL database server. We tried unlocking a table with the command %query and PostgreSQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
$err=TRUE;
$err=TRUE;
}
}
else{
else{
...
@@ -113,7 +113,7 @@ function drupal_test_pgsql($url, &$success) {
...
@@ -113,7 +113,7 @@ function drupal_test_pgsql($url, &$success) {
$query='DELETE FROM drupal_install_test';
$query='DELETE FROM drupal_install_test';
$result=pg_query($connection,$query);
$result=pg_query($connection,$query);
if($error=pg_result_error()){
if($error=pg_result_error()){
drupal_set_message(st('We were unable to delete a value from a test table on your PostgreSQL database server. We tried deleting a value with the command %query and PostgreSQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
drupal_set_message(st('Failed to delete a value from a test table on your PostgreSQL database server. We tried deleting a value with the command %query and PostgreSQL reported the following error: %error.',array('%query'=>$query,'%error'=>$error)),'error');
$err=TRUE;
$err=TRUE;
}
}
else{
else{
...
@@ -124,7 +124,7 @@ function drupal_test_pgsql($url, &$success) {
...
@@ -124,7 +124,7 @@ function drupal_test_pgsql($url, &$success) {
$query='DROP TABLE drupal_install_test';
$query='DROP TABLE drupal_install_test';
$result=pg_query($connection,$query);
$result=pg_query($connection,$query);
if($error=pg_result_error()){
if($error=pg_result_error()){
drupal_set_message(st('We were unable to drop a test table from your PostgreSQL database server. We tried dropping a table with the command %query and PostgreSQL reported the following error %error.',array('%query'=>$query,'%error'=>$error)),'error');
drupal_set_message(st('Failed to drop a test table from your PostgreSQL database server. We tried dropping a table with the command %query and PostgreSQL reported the following error %error.',array('%query'=>$query,'%error'=>$error)),'error');