List:Commits« Previous MessageNext Message »
From:uwendel Date:April 3 2008 4:18pm
Subject:PHP mysqlnd svn commit: r1381 - trunk/tests/ext/pdo_mysql
View as plain text  
Author: uwendel
Date: 2008-04-03 18:18:51 +0200 (Thu, 03 Apr 2008)
New Revision: 1381

Added:
   trunk/tests/ext/pdo_mysql/pdo_mysql_mantis_365.phpt
Log:
See Mantis #365 - wrong SQLSTATE for connect failure


Added: trunk/tests/ext/pdo_mysql/pdo_mysql_mantis_365.phpt
===================================================================
--- trunk/tests/ext/pdo_mysql/pdo_mysql_mantis_365.phpt	                        (rev 0)
+++ trunk/tests/ext/pdo_mysql/pdo_mysql_mantis_365.phpt	2008-04-03 16:18:51 UTC (rev 1381)
@@ -0,0 +1,28 @@
+--TEST--
+Mantis #365 (Wrong SQLSTATE) - remove test after fix!
+--SKIPIF--
+<?php
+require_once('skipif.inc');
+require_once('mysql_pdo_test.inc');
+MySQLPDOTest::skip();
+$db = MySQLPDOTest::factory();
+?>
+--FILE--
+<?php
+	require_once('mysql_pdo_test.inc');
+
+	$dsn = PDO_MYSQL_TEST_DSN;
+	$user = 'dontcreatesuchauser';
+	$pass = 'withthispassword';
+
+	try {
+		$db = new PDO($dsn, $user, $pass);
+	} catch (PDOException $e) {
+		var_dump($e->getMessage());
+	}
+
+
+	print "done!";
+--EXPECTF--
+string(%d) "SQLSTATE[28000] [1045] Access denied for user 'dontcreatesuchau'@'%s' (using
password: YES)"
+done!
\ No newline at end of file

Thread
PHP mysqlnd svn commit: r1381 - trunk/tests/ext/pdo_mysqluwendel3 Apr