File: tests/expected/parser/issue44.serialized

Recommend this page to a friend!
  Classes of Michael Cummings  >  PHP SQL Parser Class  >  tests/expected/parser/issue44.serialized  >  Download  
File: tests/expected/parser/issue44.serialized
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP SQL Parser Class
Parse SQL to extract the SQL query structure
Author: By
Last change:
Date: 2 years ago
Size: 12,320 bytes
 

 

Contents

Class file image Download
a:4:{s:6:"SELECT";a:8:{i:0;a:7:{s:9:"expr_type";s:6:"colref";s:5:"alias";b:0;s:9:"base_expr";s:4:"m.id";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"m";i:1;s:2:"id";}}s:8:"sub_tree";b:0;s:5:"delim";s:1:",";s:8:"position";i:7;}i:1;a:7:{s:9:"expr_type";s:6:"colref";s:5:"alias";b:0;s:9:"base_expr";s:7:"m.title";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"m";i:1;s:5:"title";}}s:8:"sub_tree";b:0;s:5:"delim";s:1:",";s:8:"position";i:13;}i:2;a:7:{s:9:"expr_type";s:6:"colref";s:5:"alias";b:0;s:9:"base_expr";s:8:"m.module";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"m";i:1;s:6:"module";}}s:8:"sub_tree";b:0;s:5:"delim";s:1:",";s:8:"position";i:22;}i:3;a:7:{s:9:"expr_type";s:6:"colref";s:5:"alias";b:0;s:9:"base_expr";s:10:"m.position";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"m";i:1;s:8:"position";}}s:8:"sub_tree";b:0;s:5:"delim";s:1:",";s:8:"position";i:32;}i:4;a:7:{s:9:"expr_type";s:6:"colref";s:5:"alias";b:0;s:9:"base_expr";s:9:"m.content";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"m";i:1;s:7:"content";}}s:8:"sub_tree";b:0;s:5:"delim";s:1:",";s:8:"position";i:44;}i:5;a:7:{s:9:"expr_type";s:6:"colref";s:5:"alias";b:0;s:9:"base_expr";s:11:"m.showtitle";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"m";i:1;s:9:"showtitle";}}s:8:"sub_tree";b:0;s:5:"delim";s:1:",";s:8:"position";i:55;}i:6;a:7:{s:9:"expr_type";s:6:"colref";s:5:"alias";b:0;s:9:"base_expr";s:8:"m.params";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"m";i:1;s:6:"params";}}s:8:"sub_tree";b:0;s:5:"delim";s:1:",";s:8:"position";i:68;}i:7;a:7:{s:9:"expr_type";s:6:"colref";s:5:"alias";b:0;s:9:"base_expr";s:9:"mm.menuid";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:2:"mm";i:1;s:6:"menuid";}}s:8:"sub_tree";b:0;s:5:"delim";b:0;s:8:"position";i:78;}}s:4:"FROM";a:3:{i:0;a:11:{s:9:"expr_type";s:5:"table";s:5:"table";s:13:"kj9un_modules";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:13:"kj9un_modules";}}s:5:"alias";a:5:{s:2:"as";b:1;s:4:"name";s:1:"m";s:9:"base_expr";s:4:"AS m";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:1:"m";}}s:8:"position";i:115;}s:5:"hints";b:0;s:9:"join_type";s:4:"JOIN";s:8:"ref_type";b:0;s:10:"ref_clause";b:0;s:9:"base_expr";s:18:"kj9un_modules AS m";s:8:"sub_tree";b:0;s:8:"position";i:101;}i:1;a:11:{s:9:"expr_type";s:5:"table";s:5:"table";s:18:"kj9un_modules_menu";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:18:"kj9un_modules_menu";}}s:5:"alias";a:5:{s:2:"as";b:1;s:4:"name";s:2:"mm";s:9:"base_expr";s:5:"AS mm";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:2:"mm";}}s:8:"position";i:157;}s:5:"hints";b:0;s:9:"join_type";s:4:"LEFT";s:8:"ref_type";s:2:"ON";s:10:"ref_clause";a:3:{i:0;a:5:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:11:"mm.moduleid";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:2:"mm";i:1;s:8:"moduleid";}}s:8:"sub_tree";b:0;s:8:"position";i:166;}i:1;a:4:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:1:"=";s:8:"sub_tree";b:0;s:8:"position";i:178;}i:2;a:5:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:4:"m.id";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"m";i:1;s:2:"id";}}s:8:"sub_tree";b:0;s:8:"position";i:180;}}s:9:"base_expr";s:46:"kj9un_modules_menu AS mm ON mm.moduleid = m.id";s:8:"sub_tree";b:0;s:8:"position";i:138;}i:2;a:11:{s:9:"expr_type";s:5:"table";s:5:"table";s:16:"kj9un_extensions";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:16:"kj9un_extensions";}}s:5:"alias";a:5:{s:2:"as";b:1;s:4:"name";s:1:"e";s:9:"base_expr";s:4:"AS e";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:1:"e";}}s:8:"position";i:220;}s:5:"hints";b:0;s:9:"join_type";s:4:"LEFT";s:8:"ref_type";s:2:"ON";s:10:"ref_clause";a:7:{i:0;a:5:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:9:"e.element";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"e";i:1;s:7:"element";}}s:8:"sub_tree";b:0;s:8:"position";i:228;}i:1;a:4:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:1:"=";s:8:"sub_tree";b:0;s:8:"position";i:238;}i:2;a:5:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:8:"m.module";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"m";i:1;s:6:"module";}}s:8:"sub_tree";b:0;s:8:"position";i:240;}i:3;a:4:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:3:"AND";s:8:"sub_tree";b:0;s:8:"position";i:249;}i:4;a:5:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:11:"e.client_id";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"e";i:1;s:9:"client_id";}}s:8:"sub_tree";b:0;s:8:"position";i:253;}i:5;a:4:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:1:"=";s:8:"sub_tree";b:0;s:8:"position";i:265;}i:6;a:5:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:11:"m.client_id";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"m";i:1;s:9:"client_id";}}s:8:"sub_tree";b:0;s:8:"position";i:267;}}s:9:"base_expr";s:75:"kj9un_extensions AS e ON e.element = m.module AND e.client_id = m.client_id";s:8:"sub_tree";b:0;s:8:"position";i:203;}}s:5:"WHERE";a:25:{i:0;a:5:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:11:"m.published";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"m";i:1;s:9:"published";}}s:8:"sub_tree";b:0;s:8:"position";i:293;}i:1;a:4:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:1:"=";s:8:"sub_tree";b:0;s:8:"position";i:305;}i:2;a:4:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:1:"1";s:8:"sub_tree";b:0;s:8:"position";i:307;}i:3;a:4:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:3:"AND";s:8:"sub_tree";b:0;s:8:"position";i:309;}i:4;a:5:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:9:"e.enabled";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"e";i:1;s:7:"enabled";}}s:8:"sub_tree";b:0;s:8:"position";i:313;}i:5;a:4:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:1:"=";s:8:"sub_tree";b:0;s:8:"position";i:323;}i:6;a:4:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:1:"1";s:8:"sub_tree";b:0;s:8:"position";i:325;}i:7;a:4:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:3:"AND";s:8:"sub_tree";b:0;s:8:"position";i:327;}i:8;a:4:{s:9:"expr_type";s:18:"bracket_expression";s:9:"base_expr";s:79:"(m.publish_up = '0000-00-00 00:00:00' OR m.publish_up <= '2012-04-21 09:44:01')";s:8:"sub_tree";a:7:{i:0;a:5:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:12:"m.publish_up";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"m";i:1;s:10:"publish_up";}}s:8:"sub_tree";b:0;s:8:"position";i:332;}i:1;a:4:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:1:"=";s:8:"sub_tree";b:0;s:8:"position";i:345;}i:2;a:4:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:21:"'0000-00-00 00:00:00'";s:8:"sub_tree";b:0;s:8:"position";i:347;}i:3;a:4:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:2:"OR";s:8:"sub_tree";b:0;s:8:"position";i:369;}i:4;a:5:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:12:"m.publish_up";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"m";i:1;s:10:"publish_up";}}s:8:"sub_tree";b:0;s:8:"position";i:372;}i:5;a:4:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:2:"<=";s:8:"sub_tree";b:0;s:8:"position";i:385;}i:6;a:4:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:21:"'2012-04-21 09:44:01'";s:8:"sub_tree";b:0;s:8:"position";i:388;}}s:8:"position";i:331;}i:9;a:4:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:3:"AND";s:8:"sub_tree";b:0;s:8:"position";i:411;}i:10;a:4:{s:9:"expr_type";s:18:"bracket_expression";s:9:"base_expr";s:83:"(m.publish_down = '0000-00-00 00:00:00' OR m.publish_down >= '2012-04-21 09:44:01')";s:8:"sub_tree";a:7:{i:0;a:5:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:14:"m.publish_down";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"m";i:1;s:12:"publish_down";}}s:8:"sub_tree";b:0;s:8:"position";i:416;}i:1;a:4:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:1:"=";s:8:"sub_tree";b:0;s:8:"position";i:431;}i:2;a:4:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:21:"'0000-00-00 00:00:00'";s:8:"sub_tree";b:0;s:8:"position";i:433;}i:3;a:4:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:2:"OR";s:8:"sub_tree";b:0;s:8:"position";i:455;}i:4;a:5:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:14:"m.publish_down";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"m";i:1;s:12:"publish_down";}}s:8:"sub_tree";b:0;s:8:"position";i:458;}i:5;a:4:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:2:">=";s:8:"sub_tree";b:0;s:8:"position";i:473;}i:6;a:4:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:21:"'2012-04-21 09:44:01'";s:8:"sub_tree";b:0;s:8:"position";i:476;}}s:8:"position";i:415;}i:11;a:4:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:3:"AND";s:8:"sub_tree";b:0;s:8:"position";i:499;}i:12;a:5:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:8:"m.access";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"m";i:1;s:6:"access";}}s:8:"sub_tree";b:0;s:8:"position";i:503;}i:13;a:4:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:2:"IN";s:8:"sub_tree";b:0;s:8:"position";i:512;}i:14;a:4:{s:9:"expr_type";s:7:"in-list";s:9:"base_expr";s:5:"(1,1)";s:8:"sub_tree";a:2:{i:0;a:4:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:1:"1";s:8:"sub_tree";b:0;s:8:"position";i:516;}i:1;a:4:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:1:"1";s:8:"sub_tree";b:0;s:8:"position";i:518;}}s:8:"position";i:515;}i:15;a:4:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:3:"AND";s:8:"sub_tree";b:0;s:8:"position";i:521;}i:16;a:5:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:11:"m.client_id";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"m";i:1;s:9:"client_id";}}s:8:"sub_tree";b:0;s:8:"position";i:525;}i:17;a:4:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:1:"=";s:8:"sub_tree";b:0;s:8:"position";i:537;}i:18;a:4:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:1:"0";s:8:"sub_tree";b:0;s:8:"position";i:539;}i:19;a:4:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:3:"AND";s:8:"sub_tree";b:0;s:8:"position";i:541;}i:20;a:4:{s:9:"expr_type";s:18:"bracket_expression";s:9:"base_expr";s:35:"(mm.menuid = 170 OR mm.menuid <= 0)";s:8:"sub_tree";a:7:{i:0;a:5:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:9:"mm.menuid";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:2:"mm";i:1;s:6:"menuid";}}s:8:"sub_tree";b:0;s:8:"position";i:546;}i:1;a:4:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:1:"=";s:8:"sub_tree";b:0;s:8:"position";i:556;}i:2;a:4:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:3:"170";s:8:"sub_tree";b:0;s:8:"position";i:558;}i:3;a:4:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:2:"OR";s:8:"sub_tree";b:0;s:8:"position";i:562;}i:4;a:5:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:9:"mm.menuid";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:2:"mm";i:1;s:6:"menuid";}}s:8:"sub_tree";b:0;s:8:"position";i:565;}i:5;a:4:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:2:"<=";s:8:"sub_tree";b:0;s:8:"position";i:575;}i:6;a:4:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:1:"0";s:8:"sub_tree";b:0;s:8:"position";i:578;}}s:8:"position";i:545;}i:21;a:4:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:3:"AND";s:8:"sub_tree";b:0;s:8:"position";i:581;}i:22;a:5:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:10:"m.language";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"m";i:1;s:8:"language";}}s:8:"sub_tree";b:0;s:8:"position";i:585;}i:23;a:4:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:2:"IN";s:8:"sub_tree";b:0;s:8:"position";i:596;}i:24;a:4:{s:9:"expr_type";s:7:"in-list";s:9:"base_expr";s:13:"('en-GB','*')";s:8:"sub_tree";a:2:{i:0;a:4:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:7:"'en-GB'";s:8:"sub_tree";b:0;s:8:"position";i:600;}i:1;a:4:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:3:"'*'";s:8:"sub_tree";b:0;s:8:"position";i:608;}}s:8:"position";i:599;}}s:5:"ORDER";a:2:{i:0;a:6:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:10:"m.position";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"m";i:1;s:8:"position";}}s:8:"sub_tree";b:0;s:9:"direction";s:3:"ASC";s:8:"position";i:630;}i:1;a:6:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:10:"m.ordering";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"m";i:1;s:8:"ordering";}}s:8:"sub_tree";b:0;s:9:"direction";s:3:"ASC";s:8:"position";i:642;}}}

For more information send a message to info at phpclasses dot org.