Navigation Menu

Skip to content

Commit

Permalink
mysql57 test: use new connect to apply global value to session value
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 19, 2016
1 parent 099e869 commit b4ecb6a
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -37,6 +37,10 @@ SHOW CREATE TABLE diaries;
INSERT INTO diaries (title, tags) VALUES ("Hello Groonga!", "groonga install");
INSERT INTO diaries (title, tags) VALUES ("Hello Mroonga!", "mroonga install");

disable_query_log;
CONNECT (new_connection, localhost, root, ,);
CONNECTION new_connection;
enable_query_log;

SELECT * FROM diaries WHERE MATCH (tags) AGAINST ("+install" IN BOOLEAN MODE);

Expand All @@ -48,6 +52,10 @@ SELECT * FROM diaries WHERE MATCH (tags) AGAINST ("+gr" IN BOOLEAN MODE);
SET mroonga_match_escalation_threshold = 0;
SELECT * FROM diaries WHERE MATCH (tags) AGAINST ("+gr" IN BOOLEAN MODE);

disable_query_log;
CONNECTION default;
DISCONNECT new_connection;
enable_query_log;

DROP TABLE diaries;

Expand Down

0 comments on commit b4ecb6a

Please sign in to comment.