[prev in list] [next in list] [prev in thread] [next in thread]
List: pecl-cvs
Subject: [PECL-CVS] com =?UTF-8?Q?pecl/database/mysql=5Fxdevapi=3A=20WL=23=31=32=31=39=30-Dev?= =?UTF-8?Q?API
From: hery ramilison <mysqlre () php ! net>
Date: 2019-04-25 20:13:55
Message-ID: php-mail-014db20cb8a0de5a1e87871e17cddf7b1157617732 () git ! php ! net
[Download RAW message or body]
Commit: c8d7f29d7cf6b036d0646ae4660bab36311770cb
Author: Darek Slusarczyk <dariusz.slusarczyk@oracle.com> Thu, 25 Apr 2019 \
22:13:55 +0200
Parents: 6235c02c6b90fd27685ec52898622b548ef2a379
Branches: master
Link: http://git.php.net/?p=pecl/database/mysql_xdevapi.git;a=commitdiff;h=c8d7f29d7cf6b036d0646ae4660bab36311770cb
Log:
WL#12190-DevAPI: indexing array fields
- update tests to work with the newest server - it finally supports array indexes
Bugs:
https://bugs.php.net/12190
Changed paths:
M tests/index/array_dates.phpt
M tests/index/array_integers.phpt
M tests/index/array_strings.phpt
Diff:
diff --git a/tests/index/array_dates.phpt b/tests/index/array_dates.phpt
index 070cf60..d078c58 100644
--- a/tests/index/array_dates.phpt
+++ b/tests/index/array_dates.phpt
@@ -25,11 +25,11 @@ $session = create_test_db();
$schema = $session->getSchema($db);
$coll = $schema->getCollection($test_collection_name);
-// expect_create_index_with_name(
-// 'world_cup_champions_index',
-// '{"fields": [{"field": "$.country", "type": "TEXT(64)", "array": false}]}');
-// expect_create_index(
-// '{"fields": [{"field": "$.world_cup_championships", "type": "DATE", "array": \
true}]}'); +expect_create_index_with_name(
+ 'world_cup_champions_index',
+ '{"fields": [{"field": "$.country", "type": "TEXT(64)", "array": false}]}');
+expect_create_index(
+ '{"fields": [{"field": "$.world_cup_championships", "type": "DATE", "array": \
true}]}');
add_world_cup_champion('Uruguay', '[ "1930-07-30", "1950-07-16"]');
add_world_cup_champion('Italy', '[ "1934-06-10", "1938-06-19", "1982-07-11", \
"2006-07-09" ]');
diff --git a/tests/index/array_integers.phpt b/tests/index/array_integers.phpt
index cf63bab..73e123f 100644
--- a/tests/index/array_integers.phpt
+++ b/tests/index/array_integers.phpt
@@ -26,11 +26,11 @@ $session = create_test_db();
$schema = $session->getSchema($db);
$coll = $schema->getCollection($test_collection_name);
-// expect_create_index_with_name(
-// 'lottery_draws_index',
-// '{"fields": [{"field": "$.draw", "type": "TEXT(64)", "array": false}]}');
-// expect_create_index(
-// '{"fields": [{"field": "$.numbers", "type": "INTEGER", "array": true}]}');
+expect_create_index_with_name(
+ 'lottery_draws_index',
+ '{"fields": [{"field": "$.draw", "type": "TEXT(64)", "array": false}]}');
+expect_create_index(
+ '{"fields": [{"field": "$.numbers", "type": "UNSIGNED INTEGER", "array": true}]}');
add_lottery_draw('draw 6423', '2018-01-06', '[ 3, 24, 40, 43, 65 ]');
add_lottery_draw('draw 6810', '2018-02-15', '[ 1, 2, 8, 15, 78 ]');
diff --git a/tests/index/array_strings.phpt b/tests/index/array_strings.phpt
index 11b54b8..52e2c13 100644
--- a/tests/index/array_strings.phpt
+++ b/tests/index/array_strings.phpt
@@ -24,11 +24,11 @@ $session = create_test_db();
$schema = $session->getSchema($db);
$coll = $schema->getCollection($test_collection_name);
-// expect_create_index_with_name(
-// 'F1_teams_index',
-// '{"fields": [{"field": "$.team", "type": "TEXT(64)", "array": false}]}');
-// expect_create_index(
-// '{"fields": [{"field": "$.staff", "type": "CHAR(128)", "array": true}]}');
+expect_create_index_with_name(
+ 'F1_teams_index',
+ '{"fields": [{"field": "$.team", "type": "TEXT(64)", "array": false}]}');
+expect_create_index(
+ '{"fields": [{"field": "$.staff", "type": "CHAR(128)", "array": true}]}');
add_F1_team('Mercedes',
'[ "Toto Wolff", "Niki Lauda", "Lewis Hamilton", "Valtteri Bottas" ]');
--
PECL CVS Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic