-
-
Notifications
You must be signed in to change notification settings - Fork 540
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
"PER:" - something wrong (should never be displayed in real parsers) "P01:" - sphinxql "P02:" - sphinxql secondary "P03:" - ddl "P04:" - sphinxql debug "P05:" - sphinxql extra "P06:" - percolate filters "P07:" - select parsers (i.e. select lists in api) "P08:" - query "P09:" - expression "P10:" - json That fixes #3487 CHANGELOG: different internal parsers now provide their internal mnemonic code in case of different errors. That helps to locate which exactly parser caused an error, and also hide non-important internal details.
- Loading branch information
Showing
24 changed files
with
58 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
a:1:{i:0;a:35:{i:0;a:2:{s:8:"sphinxql";s:76:"CREATE TABLE test (title text, `123abc` integer, a22 integer, `a23` integer)";s:14:"total_affected";i:0;}i:1;a:3:{s:8:"sphinxql";s:9:"desc test";s:10:"total_rows";i:5;s:4:"rows";a:5:{i:0;a:3:{s:5:"Field";s:2:"id";s:4:"Type";s:6:"bigint";s:10:"Properties";s:0:"";}i:1;a:3:{s:5:"Field";s:5:"title";s:4:"Type";s:4:"text";s:10:"Properties";s:14:"indexed stored";}i:2;a:3:{s:5:"Field";s:6:"123abc";s:4:"Type";s:4:"uint";s:10:"Properties";s:0:"";}i:3;a:3:{s:5:"Field";s:3:"a22";s:4:"Type";s:4:"uint";s:10:"Properties";s:0:"";}i:4;a:3:{s:5:"Field";s:3:"a23";s:4:"Type";s:4:"uint";s:10:"Properties";s:0:"";}}}i:2;a:2:{s:8:"sphinxql";s:70:"insert into test (id,title,`123abc`,a22,a23) values (1,'bla',10,11,12)";s:14:"total_affected";i:1;}i:3;a:2:{s:8:"sphinxql";s:72:"insert into test (id,title,`123abc`,`a22`,a23) values (2,'bla',20,21,22)";s:14:"total_affected";i:1;}i:4;a:3:{s:8:"sphinxql";s:18:"select * from test";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:5:{s:2:"id";s:1:"2";s:6:"123abc";s:2:"20";s:3:"a22";s:2:"21";s:3:"a23";s:2:"22";s:5:"title";s:3:"bla";}i:1;a:5:{s:2:"id";s:1:"1";s:6:"123abc";s:2:"10";s:3:"a22";s:2:"11";s:3:"a23";s:2:"12";s:5:"title";s:3:"bla";}}}i:5;a:3:{s:8:"sphinxql";s:25:"select `123abc` from test";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:1:{s:8:"`123abc`";s:2:"20";}i:1;a:1:{s:8:"`123abc`";s:2:"10";}}}i:6;a:3:{s:8:"sphinxql";s:23:"select 123abc from test";s:5:"errno";i:1064;s:5:"error";s:70:"sphinxql: syntax error, unexpected BAD_NUMERIC near '123abc from test'";}i:7;a:3:{s:8:"sphinxql";s:34:"select * from test where 123abc>10";s:5:"errno";i:1064;s:5:"error";s:63:"sphinxql: syntax error, unexpected BAD_NUMERIC near '123abc>10'";}i:8;a:3:{s:8:"sphinxql";s:36:"select * from test where `123abc`>10";s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:5:{s:2:"id";s:1:"2";s:6:"123abc";s:2:"20";s:3:"a22";s:2:"21";s:3:"a23";s:2:"22";s:5:"title";s:3:"bla";}}}i:9;a:3:{s:8:"sphinxql";s:22:"select `a22` from test";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:1:{s:3:"a22";s:2:"21";}i:1;a:1:{s:3:"a22";s:2:"11";}}}i:10;a:3:{s:8:"sphinxql";s:20:"select a22 from test";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:1:{s:3:"a22";s:2:"21";}i:1;a:1:{s:3:"a22";s:2:"11";}}}i:11;a:3:{s:8:"sphinxql";s:31:"select * from test where a22>10";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:5:{s:2:"id";s:1:"2";s:6:"123abc";s:2:"20";s:3:"a22";s:2:"21";s:3:"a23";s:2:"22";s:5:"title";s:3:"bla";}i:1;a:5:{s:2:"id";s:1:"1";s:6:"123abc";s:2:"10";s:3:"a22";s:2:"11";s:3:"a23";s:2:"12";s:5:"title";s:3:"bla";}}}i:12;a:3:{s:8:"sphinxql";s:33:"select * from test where `a22`>10";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:5:{s:2:"id";s:1:"2";s:6:"123abc";s:2:"20";s:3:"a22";s:2:"21";s:3:"a23";s:2:"22";s:5:"title";s:3:"bla";}i:1;a:5:{s:2:"id";s:1:"1";s:6:"123abc";s:2:"10";s:3:"a22";s:2:"11";s:3:"a23";s:2:"12";s:5:"title";s:3:"bla";}}}i:13;a:3:{s:8:"sphinxql";s:22:"select `a23` from test";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:1:{s:3:"a23";s:2:"22";}i:1;a:1:{s:3:"a23";s:2:"12";}}}i:14;a:3:{s:8:"sphinxql";s:20:"select a23 from test";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:1:{s:3:"a23";s:2:"22";}i:1;a:1:{s:3:"a23";s:2:"12";}}}i:15;a:3:{s:8:"sphinxql";s:31:"select * from test where a23>10";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:5:{s:2:"id";s:1:"2";s:6:"123abc";s:2:"20";s:3:"a22";s:2:"21";s:3:"a23";s:2:"22";s:5:"title";s:3:"bla";}i:1;a:5:{s:2:"id";s:1:"1";s:6:"123abc";s:2:"10";s:3:"a22";s:2:"11";s:3:"a23";s:2:"12";s:5:"title";s:3:"bla";}}}i:16;a:3:{s:8:"sphinxql";s:33:"select * from test where `a23`>10";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:5:{s:2:"id";s:1:"2";s:6:"123abc";s:2:"20";s:3:"a22";s:2:"21";s:3:"a23";s:2:"22";s:5:"title";s:3:"bla";}i:1;a:5:{s:2:"id";s:1:"1";s:6:"123abc";s:2:"10";s:3:"a22";s:2:"11";s:3:"a23";s:2:"12";s:5:"title";s:3:"bla";}}}i:17;a:2:{s:8:"sphinxql";s:15:"drop table test";s:14:"total_affected";i:0;}i:18;a:2:{s:8:"sphinxql";s:47:"CREATE TABLE `1a2b3c`(field1 text, field2 text)";s:14:"total_affected";i:0;}i:19;a:3:{s:8:"sphinxql";s:11:"show tables";s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:2:{s:5:"Index";s:6:"1a2b3c";s:4:"Type";s:2:"rt";}}}i:20;a:3:{s:8:"sphinxql";s:13:"desc `1a2b3c`";s:10:"total_rows";i:3;s:4:"rows";a:3:{i:0;a:3:{s:5:"Field";s:2:"id";s:4:"Type";s:6:"bigint";s:10:"Properties";s:0:"";}i:1;a:3:{s:5:"Field";s:6:"field1";s:4:"Type";s:4:"text";s:10:"Properties";s:14:"indexed stored";}i:2;a:3:{s:5:"Field";s:6:"field2";s:4:"Type";s:4:"text";s:10:"Properties";s:14:"indexed stored";}}}i:21;a:2:{s:8:"sphinxql";s:45:"insert into `1a2b3c` values (1, 'bla', 'bla')";s:14:"total_affected";i:1;}i:22;a:3:{s:8:"sphinxql";s:22:"select * from `1a2b3c`";s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:3:{s:2:"id";s:1:"1";s:6:"field1";s:3:"bla";s:6:"field2";s:3:"bla";}}}i:23;a:2:{s:8:"sphinxql";s:19:"drop table `1a2b3c`";s:14:"total_affected";i:0;}i:24;a:2:{s:8:"sphinxql";s:46:"CREATE TABLE `a2b3c`(field1 text, field2 text)";s:14:"total_affected";i:0;}i:25;a:3:{s:8:"sphinxql";s:11:"show tables";s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:2:{s:5:"Index";s:5:"a2b3c";s:4:"Type";s:2:"rt";}}}i:26;a:3:{s:8:"sphinxql";s:12:"desc `a2b3c`";s:10:"total_rows";i:3;s:4:"rows";a:3:{i:0;a:3:{s:5:"Field";s:2:"id";s:4:"Type";s:6:"bigint";s:10:"Properties";s:0:"";}i:1;a:3:{s:5:"Field";s:6:"field1";s:4:"Type";s:4:"text";s:10:"Properties";s:14:"indexed stored";}i:2;a:3:{s:5:"Field";s:6:"field2";s:4:"Type";s:4:"text";s:10:"Properties";s:14:"indexed stored";}}}i:27;a:2:{s:8:"sphinxql";s:44:"insert into `a2b3c` values (1, 'bla', 'bla')";s:14:"total_affected";i:1;}i:28;a:3:{s:8:"sphinxql";s:21:"select * from `a2b3c`";s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:3:{s:2:"id";s:1:"1";s:6:"field1";s:3:"bla";s:6:"field2";s:3:"bla";}}}i:29;a:2:{s:8:"sphinxql";s:18:"drop table `a2b3c`";s:14:"total_affected";i:0;}i:30;a:2:{s:8:"sphinxql";s:39:"create table pq (`json` json) type='pq'";s:14:"total_affected";i:0;}i:31;a:2:{s:8:"sphinxql";s:62:"INSERT INTO pq (query, filters) VALUES ('', 'json.target==10')";s:14:"total_affected";i:1;}i:32;a:3:{s:8:"sphinxql";s:56:"call pq ('pq', '{"json":{"target":10}}', 1 as docs_json)";s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:1:{s:2:"id";s:13:"1677721600001";}}}i:33;a:2:{s:8:"sphinxql";s:56:"call pq ('pq', '{"json":{"target":20}}', 1 as docs_json)";s:10:"total_rows";i:0;}i:34;a:2:{s:8:"sphinxql";s:13:"drop table pq";s:14:"total_affected";i:0;}}} | ||
a:1:{i:0;a:35:{i:0;a:2:{s:8:"sphinxql";s:76:"CREATE TABLE test (title text, `123abc` integer, a22 integer, `a23` integer)";s:14:"total_affected";i:0;}i:1;a:3:{s:8:"sphinxql";s:9:"desc test";s:10:"total_rows";i:5;s:4:"rows";a:5:{i:0;a:3:{s:5:"Field";s:2:"id";s:4:"Type";s:6:"bigint";s:10:"Properties";s:0:"";}i:1;a:3:{s:5:"Field";s:5:"title";s:4:"Type";s:4:"text";s:10:"Properties";s:14:"indexed stored";}i:2;a:3:{s:5:"Field";s:6:"123abc";s:4:"Type";s:4:"uint";s:10:"Properties";s:0:"";}i:3;a:3:{s:5:"Field";s:3:"a22";s:4:"Type";s:4:"uint";s:10:"Properties";s:0:"";}i:4;a:3:{s:5:"Field";s:3:"a23";s:4:"Type";s:4:"uint";s:10:"Properties";s:0:"";}}}i:2;a:2:{s:8:"sphinxql";s:70:"insert into test (id,title,`123abc`,a22,a23) values (1,'bla',10,11,12)";s:14:"total_affected";i:1;}i:3;a:2:{s:8:"sphinxql";s:72:"insert into test (id,title,`123abc`,`a22`,a23) values (2,'bla',20,21,22)";s:14:"total_affected";i:1;}i:4;a:3:{s:8:"sphinxql";s:18:"select * from test";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:5:{s:2:"id";s:1:"2";s:5:"title";s:3:"bla";s:6:"123abc";s:2:"20";s:3:"a22";s:2:"21";s:3:"a23";s:2:"22";}i:1;a:5:{s:2:"id";s:1:"1";s:5:"title";s:3:"bla";s:6:"123abc";s:2:"10";s:3:"a22";s:2:"11";s:3:"a23";s:2:"12";}}}i:5;a:3:{s:8:"sphinxql";s:25:"select `123abc` from test";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:1:{s:8:"`123abc`";s:2:"20";}i:1;a:1:{s:8:"`123abc`";s:2:"10";}}}i:6;a:3:{s:8:"sphinxql";s:23:"select 123abc from test";s:5:"errno";i:1064;s:5:"error";s:65:"P01: syntax error, unexpected BAD_NUMERIC near '123abc from test'";}i:7;a:3:{s:8:"sphinxql";s:34:"select * from test where 123abc>10";s:5:"errno";i:1064;s:5:"error";s:58:"P01: syntax error, unexpected BAD_NUMERIC near '123abc>10'";}i:8;a:3:{s:8:"sphinxql";s:36:"select * from test where `123abc`>10";s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:5:{s:2:"id";s:1:"2";s:5:"title";s:3:"bla";s:6:"123abc";s:2:"20";s:3:"a22";s:2:"21";s:3:"a23";s:2:"22";}}}i:9;a:3:{s:8:"sphinxql";s:22:"select `a22` from test";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:1:{s:3:"a22";s:2:"21";}i:1;a:1:{s:3:"a22";s:2:"11";}}}i:10;a:3:{s:8:"sphinxql";s:20:"select a22 from test";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:1:{s:3:"a22";s:2:"21";}i:1;a:1:{s:3:"a22";s:2:"11";}}}i:11;a:3:{s:8:"sphinxql";s:31:"select * from test where a22>10";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:5:{s:2:"id";s:1:"2";s:5:"title";s:3:"bla";s:6:"123abc";s:2:"20";s:3:"a22";s:2:"21";s:3:"a23";s:2:"22";}i:1;a:5:{s:2:"id";s:1:"1";s:5:"title";s:3:"bla";s:6:"123abc";s:2:"10";s:3:"a22";s:2:"11";s:3:"a23";s:2:"12";}}}i:12;a:3:{s:8:"sphinxql";s:33:"select * from test where `a22`>10";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:5:{s:2:"id";s:1:"2";s:5:"title";s:3:"bla";s:6:"123abc";s:2:"20";s:3:"a22";s:2:"21";s:3:"a23";s:2:"22";}i:1;a:5:{s:2:"id";s:1:"1";s:5:"title";s:3:"bla";s:6:"123abc";s:2:"10";s:3:"a22";s:2:"11";s:3:"a23";s:2:"12";}}}i:13;a:3:{s:8:"sphinxql";s:22:"select `a23` from test";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:1:{s:3:"a23";s:2:"22";}i:1;a:1:{s:3:"a23";s:2:"12";}}}i:14;a:3:{s:8:"sphinxql";s:20:"select a23 from test";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:1:{s:3:"a23";s:2:"22";}i:1;a:1:{s:3:"a23";s:2:"12";}}}i:15;a:3:{s:8:"sphinxql";s:31:"select * from test where a23>10";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:5:{s:2:"id";s:1:"2";s:5:"title";s:3:"bla";s:6:"123abc";s:2:"20";s:3:"a22";s:2:"21";s:3:"a23";s:2:"22";}i:1;a:5:{s:2:"id";s:1:"1";s:5:"title";s:3:"bla";s:6:"123abc";s:2:"10";s:3:"a22";s:2:"11";s:3:"a23";s:2:"12";}}}i:16;a:3:{s:8:"sphinxql";s:33:"select * from test where `a23`>10";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:5:{s:2:"id";s:1:"2";s:5:"title";s:3:"bla";s:6:"123abc";s:2:"20";s:3:"a22";s:2:"21";s:3:"a23";s:2:"22";}i:1;a:5:{s:2:"id";s:1:"1";s:5:"title";s:3:"bla";s:6:"123abc";s:2:"10";s:3:"a22";s:2:"11";s:3:"a23";s:2:"12";}}}i:17;a:2:{s:8:"sphinxql";s:15:"drop table test";s:14:"total_affected";i:0;}i:18;a:2:{s:8:"sphinxql";s:47:"CREATE TABLE `1a2b3c`(field1 text, field2 text)";s:14:"total_affected";i:0;}i:19;a:3:{s:8:"sphinxql";s:11:"show tables";s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:2:{s:5:"Index";s:6:"1a2b3c";s:4:"Type";s:2:"rt";}}}i:20;a:3:{s:8:"sphinxql";s:13:"desc `1a2b3c`";s:10:"total_rows";i:3;s:4:"rows";a:3:{i:0;a:3:{s:5:"Field";s:2:"id";s:4:"Type";s:6:"bigint";s:10:"Properties";s:0:"";}i:1;a:3:{s:5:"Field";s:6:"field1";s:4:"Type";s:4:"text";s:10:"Properties";s:14:"indexed stored";}i:2;a:3:{s:5:"Field";s:6:"field2";s:4:"Type";s:4:"text";s:10:"Properties";s:14:"indexed stored";}}}i:21;a:2:{s:8:"sphinxql";s:45:"insert into `1a2b3c` values (1, 'bla', 'bla')";s:14:"total_affected";i:1;}i:22;a:3:{s:8:"sphinxql";s:22:"select * from `1a2b3c`";s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:3:{s:2:"id";s:1:"1";s:6:"field1";s:3:"bla";s:6:"field2";s:3:"bla";}}}i:23;a:2:{s:8:"sphinxql";s:19:"drop table `1a2b3c`";s:14:"total_affected";i:0;}i:24;a:2:{s:8:"sphinxql";s:46:"CREATE TABLE `a2b3c`(field1 text, field2 text)";s:14:"total_affected";i:0;}i:25;a:3:{s:8:"sphinxql";s:11:"show tables";s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:2:{s:5:"Index";s:5:"a2b3c";s:4:"Type";s:2:"rt";}}}i:26;a:3:{s:8:"sphinxql";s:12:"desc `a2b3c`";s:10:"total_rows";i:3;s:4:"rows";a:3:{i:0;a:3:{s:5:"Field";s:2:"id";s:4:"Type";s:6:"bigint";s:10:"Properties";s:0:"";}i:1;a:3:{s:5:"Field";s:6:"field1";s:4:"Type";s:4:"text";s:10:"Properties";s:14:"indexed stored";}i:2;a:3:{s:5:"Field";s:6:"field2";s:4:"Type";s:4:"text";s:10:"Properties";s:14:"indexed stored";}}}i:27;a:2:{s:8:"sphinxql";s:44:"insert into `a2b3c` values (1, 'bla', 'bla')";s:14:"total_affected";i:1;}i:28;a:3:{s:8:"sphinxql";s:21:"select * from `a2b3c`";s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:3:{s:2:"id";s:1:"1";s:6:"field1";s:3:"bla";s:6:"field2";s:3:"bla";}}}i:29;a:2:{s:8:"sphinxql";s:18:"drop table `a2b3c`";s:14:"total_affected";i:0;}i:30;a:2:{s:8:"sphinxql";s:39:"create table pq (`json` json) type='pq'";s:14:"total_affected";i:0;}i:31;a:2:{s:8:"sphinxql";s:62:"INSERT INTO pq (query, filters) VALUES ('', 'json.target==10')";s:14:"total_affected";i:1;}i:32;a:3:{s:8:"sphinxql";s:56:"call pq ('pq', '{"json":{"target":10}}', 1 as docs_json)";s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:1:{s:2:"id";s:13:"1677721600001";}}}i:33;a:2:{s:8:"sphinxql";s:56:"call pq ('pq', '{"json":{"target":20}}', 1 as docs_json)";s:10:"total_rows";i:0;}i:34;a:2:{s:8:"sphinxql";s:13:"drop table pq";s:14:"total_affected";i:0;}}} |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.