com php-src: Ensure expected items delivered in same order: ext/pdo_odbc/tests/long_columns.phpt
| From: | Anatol Belski | Date: | Thu, 21 Dec 2017 17:37:23 +0000 |
| Subject: | com php-src: Ensure expected items delivered in same order: ext/pdo_odbc/tests/long_columns.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-100655@lists.php.net to get a copy of this message | ||
Commit: cc5a0da006205daaf1b01f41aaca942f5f6609b8
Author: Anatol Belski <ab@php.net> Thu, 21 Dec 2017 18:37:23 +0100
Parents: a46f952c0ffe4ea9436699fbaa91e8c6cdb319b0
Branches: PHP-7.1 PHP-7.2 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=cc5a0da006205daaf1b01f41aaca942f5f6609b8
Log:
Ensure expected items delivered in same order
Changed paths:
M ext/pdo_odbc/tests/long_columns.phpt
Diff:
diff --git a/ext/pdo_odbc/tests/long_columns.phpt b/ext/pdo_odbc/tests/long_columns.phpt
index e3430de..cc7b195 100644
--- a/ext/pdo_odbc/tests/long_columns.phpt
+++ b/ext/pdo_odbc/tests/long_columns.phpt
@@ -77,7 +77,7 @@ foreach ($sizes as $num) {
}
// verify data
-foreach ($db->query('SELECT id, data from TEST') as $row) {
+foreach ($db->query('SELECT id, data from TEST ORDER BY LEN(data) ASC') as $row) {
$expect = alpha_repeat($row[0]);
if (strcmp($expect, $row[1])) {
echo "Failed on size $row[id]:\n";
@@ -103,31 +103,31 @@ Passed on size 255
Passed on size 256
Passed on size 257
Passed on size 258
-Passed on size 1022
-Passed on size 1023
-Passed on size 1024
-Passed on size 1025
-Passed on size 1026
Passed on size 510
Passed on size 511
Passed on size 512
Passed on size 513
Passed on size 514
+Passed on size 1022
+Passed on size 1023
+Passed on size 1024
+Passed on size 1025
+Passed on size 1026
Passed on size 1278
Passed on size 1279
Passed on size 1280
Passed on size 1281
Passed on size 1282
-Passed on size 2046
-Passed on size 2047
-Passed on size 2048
-Passed on size 2049
-Passed on size 2050
Passed on size 1534
Passed on size 1535
Passed on size 1536
Passed on size 1537
Passed on size 1538
+Passed on size 2046
+Passed on size 2047
+Passed on size 2048
+Passed on size 2049
+Passed on size 2050
Passed on size 3070
Passed on size 3071
Passed on size 3072
@@ -137,4 +137,3 @@ Passed on size 3998
Passed on size 3999
Passed on size 4000
Finished
-