uw                                       Fri, 12 Aug 2011 11:51:44 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=314820

Log:
MySQL 5.6 fractional seconds and PS

Changed paths:
    U   
php/php-src/branches/PHP_5_3/ext/mysqli/tests/mysqli_stmt_bind_param.phpt
    U   
php/php-src/branches/PHP_5_3/ext/mysqli/tests/mysqli_stmt_bind_result.phpt
    U   
php/php-src/branches/PHP_5_4/ext/mysqli/tests/mysqli_stmt_bind_param.phpt
    U   
php/php-src/branches/PHP_5_4/ext/mysqli/tests/mysqli_stmt_bind_result.phpt
    U   php/php-src/trunk/ext/mysqli/tests/mysqli_stmt_bind_param.phpt
    U   php/php-src/trunk/ext/mysqli/tests/mysqli_stmt_bind_result.phpt

Modified: 
php/php-src/branches/PHP_5_3/ext/mysqli/tests/mysqli_stmt_bind_param.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/mysqli/tests/mysqli_stmt_bind_param.phpt   
2011-08-12 11:49:40 UTC (rev 314819)
+++ php/php-src/branches/PHP_5_3/ext/mysqli/tests/mysqli_stmt_bind_param.phpt   
2011-08-12 11:51:44 UTC (rev 314820)
@@ -304,6 +304,8 @@
        func_mysqli_stmt_bind_datatype($link, $engine, "s", "SET('a', 'b')", 
"a", 870);
        func_mysqli_stmt_bind_datatype($link, $engine, "s", "SET('a', 'b')", 
NULL, 880);

+       if (mysqli_get_server_version($link) >= 50600)
+               func_mysqli_stmt_bind_datatype($link, $engine, "s", "TIME", 
"13:27:34.123456", 890, "13:27:34");

        $stmt = mysqli_stmt_init($link);
        if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(id, label) VALUES (?, 
?)"))

Modified: 
php/php-src/branches/PHP_5_3/ext/mysqli/tests/mysqli_stmt_bind_result.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/mysqli/tests/mysqli_stmt_bind_result.phpt  
2011-08-12 11:49:40 UTC (rev 314819)
+++ php/php-src/branches/PHP_5_3/ext/mysqli/tests/mysqli_stmt_bind_result.phpt  
2011-08-12 11:51:44 UTC (rev 314820)
@@ -294,6 +294,9 @@
        func_mysqli_stmt_bind_result($link, $engine, "s", "SET('a', 'b')", "a", 
1740, $hint_str_or_unicode);
        func_mysqli_stmt_bind_result($link, $engine, "s", "SET('a', 'b')", 
NULL, 1760, $hint_str_or_unicode);

+       if (mysqli_get_server_version($link) >= 50600)
+               func_mysqli_stmt_bind_result($link, $engine, "s", "TIME", 
"13:31:34.123456", 1770, "13:31:34");
+
        /* Check that the function alias exists. It's a deprecated function,
        but we have not announce the removal so far, therefore we need to check 
for it */
        if (!is_null($tmp = @mysqli_stmt_bind_result()))

Modified: 
php/php-src/branches/PHP_5_4/ext/mysqli/tests/mysqli_stmt_bind_param.phpt
===================================================================
--- php/php-src/branches/PHP_5_4/ext/mysqli/tests/mysqli_stmt_bind_param.phpt   
2011-08-12 11:49:40 UTC (rev 314819)
+++ php/php-src/branches/PHP_5_4/ext/mysqli/tests/mysqli_stmt_bind_param.phpt   
2011-08-12 11:51:44 UTC (rev 314820)
@@ -304,6 +304,8 @@
        func_mysqli_stmt_bind_datatype($link, $engine, "s", "SET('a', 'b')", 
"a", 870);
        func_mysqli_stmt_bind_datatype($link, $engine, "s", "SET('a', 'b')", 
NULL, 880);

+       if (mysqli_get_server_version($link) >= 50600)
+               func_mysqli_stmt_bind_datatype($link, $engine, "s", "TIME", 
"13:27:34.123456", 890, "13:27:34");

        $stmt = mysqli_stmt_init($link);
        if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(id, label) VALUES (?, 
?)"))

Modified: 
php/php-src/branches/PHP_5_4/ext/mysqli/tests/mysqli_stmt_bind_result.phpt
===================================================================
--- php/php-src/branches/PHP_5_4/ext/mysqli/tests/mysqli_stmt_bind_result.phpt  
2011-08-12 11:49:40 UTC (rev 314819)
+++ php/php-src/branches/PHP_5_4/ext/mysqli/tests/mysqli_stmt_bind_result.phpt  
2011-08-12 11:51:44 UTC (rev 314820)
@@ -294,6 +294,9 @@
        func_mysqli_stmt_bind_result($link, $engine, "s", "SET('a', 'b')", "a", 
1740, $hint_str_or_unicode);
        func_mysqli_stmt_bind_result($link, $engine, "s", "SET('a', 'b')", 
NULL, 1760, $hint_str_or_unicode);

+       if (mysqli_get_server_version($link) >= 50600)
+               func_mysqli_stmt_bind_result($link, $engine, "s", "TIME", 
"13:31:34.123456", 1770, "13:31:34");
+
        /* Check that the function alias exists. It's a deprecated function,
        but we have not announce the removal so far, therefore we need to check 
for it */
        if (!is_null($tmp = @mysqli_stmt_bind_result()))

Modified: php/php-src/trunk/ext/mysqli/tests/mysqli_stmt_bind_param.phpt
===================================================================
--- php/php-src/trunk/ext/mysqli/tests/mysqli_stmt_bind_param.phpt      
2011-08-12 11:49:40 UTC (rev 314819)
+++ php/php-src/trunk/ext/mysqli/tests/mysqli_stmt_bind_param.phpt      
2011-08-12 11:51:44 UTC (rev 314820)
@@ -304,6 +304,8 @@
        func_mysqli_stmt_bind_datatype($link, $engine, "s", "SET('a', 'b')", 
"a", 870);
        func_mysqli_stmt_bind_datatype($link, $engine, "s", "SET('a', 'b')", 
NULL, 880);

+       if (mysqli_get_server_version($link) >= 50600)
+               func_mysqli_stmt_bind_datatype($link, $engine, "s", "TIME", 
"13:27:34.123456", 890, "13:27:34");

        $stmt = mysqli_stmt_init($link);
        if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(id, label) VALUES (?, 
?)"))

Modified: php/php-src/trunk/ext/mysqli/tests/mysqli_stmt_bind_result.phpt
===================================================================
--- php/php-src/trunk/ext/mysqli/tests/mysqli_stmt_bind_result.phpt     
2011-08-12 11:49:40 UTC (rev 314819)
+++ php/php-src/trunk/ext/mysqli/tests/mysqli_stmt_bind_result.phpt     
2011-08-12 11:51:44 UTC (rev 314820)
@@ -294,6 +294,9 @@
        func_mysqli_stmt_bind_result($link, $engine, "s", "SET('a', 'b')", "a", 
1740, $hint_str_or_unicode);
        func_mysqli_stmt_bind_result($link, $engine, "s", "SET('a', 'b')", 
NULL, 1760, $hint_str_or_unicode);

+       if (mysqli_get_server_version($link) >= 50600)
+               func_mysqli_stmt_bind_result($link, $engine, "s", "TIME", 
"13:31:34.123456", 1770, "13:31:34");
+
        /* Check that the function alias exists. It's a deprecated function,
        but we have not announce the removal so far, therefore we need to check 
for it */
        if (!is_null($tmp = @mysqli_stmt_bind_result()))

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to