List:Commits« Previous MessageNext Message »
From:uwendel Date:April 4 2008 3:20pm
Subject:PHP mysqlnd svn commit: r1394 - trunk/tests/ext/pdo_mysql
View as plain text  
Author: uwendel
Date: 2008-04-04 17:20:15 +0200 (Fri, 04 Apr 2008)
New Revision: 1394

Added:
   trunk/tests/ext/pdo_mysql/pdo_mysql_mantis_365_2.phpt
Log:
Another variation of Mantis #365 - but this time its not an exception but the regular
error*() function which show the wrong SQLSTATE


Added: trunk/tests/ext/pdo_mysql/pdo_mysql_mantis_365_2.phpt
===================================================================
--- trunk/tests/ext/pdo_mysql/pdo_mysql_mantis_365_2.phpt	                        (rev 0)
+++ trunk/tests/ext/pdo_mysql/pdo_mysql_mantis_365_2.phpt	2008-04-04 15:20:15 UTC (rev
1394)
@@ -0,0 +1,30 @@
+--TEST--
+Mantis #365 (Wrong SQLSTATE - II) - 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');
+
+	$db = MySQLPDOTest::factory();
+	$db->exec(' ');
+	var_dump($db->errorCode());
+	var_dump($db->errorInfo());
+
+	print "done!";
+--EXPECTF--
+string(5) "42000"
+array(3) {
+  [0]=>
+  string(5) "42000"
+  [1]=>
+  int(1065)
+  [2]=>
+  string(15) "Query was empty"
+}
+done!
\ No newline at end of file

Thread
PHP mysqlnd svn commit: r1394 - trunk/tests/ext/pdo_mysqluwendel4 Apr