thekid Tue May 22 11:38:57 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/sybase_ct/tests test_msghandler_handled.phpt
Log:
- Fixed expectancy in for SQL query <select convert(datetime, "notadate")>
This query should return bool(false) and not a resource() because
the above is a syntax error
# Exact message yielded by SQL server is the following:
# "Syntax error during explicit conversion of VARCHAR value `notadate`
# to a DATETIME field.
http://cvs.php.net/viewvc.cgi/php-src/ext/sybase_ct/tests/test_msghandler_handled.phpt?r1=1.1.6.1&r2=1.1.6.2&diff_format=u
Index: php-src/ext/sybase_ct/tests/test_msghandler_handled.phpt
diff -u php-src/ext/sybase_ct/tests/test_msghandler_handled.phpt:1.1.6.1
php-src/ext/sybase_ct/tests/test_msghandler_handled.phpt:1.1.6.2
--- php-src/ext/sybase_ct/tests/test_msghandler_handled.phpt:1.1.6.1 Wed Mar
14 11:57:45 2007
+++ php-src/ext/sybase_ct/tests/test_msghandler_handled.phpt Tue May 22
11:38:57 2007
@@ -6,7 +6,7 @@
<?php
/* This file is part of PHP test framework for ext/sybase_ct
*
- * $Id: test_msghandler_handled.phpt,v 1.1.6.1 2007/03/14 11:57:45 thekid Exp $
+ * $Id: test_msghandler_handled.phpt,v 1.1.6.2 2007/05/22 11:38:57 thekid Exp $
*/
require('test.inc');
@@ -65,6 +65,5 @@
Warning: sybase_query(): Sybase: Server message: Syntax error during
explicit conversion of VARCHAR value 'notadate' to a DATETIME field.
(severity 16, procedure N/A) in %s on line %d
-<<< Return: resource
-array(0) {
-}
+<<< Return: boolean
+bool(false)
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php