File: tests/expected/parser/issue15.serialized

Recommend this page to a friend!
  Classes of Michael Cummings  >  PHP SQL Parser Class  >  tests/expected/parser/issue15.serialized  >  Download  
File: tests/expected/parser/issue15.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: 4,869 bytes
 

 

Contents

Class file image Download
a:4:{s:6:"SELECT";a:5:{i:0;a:6:{s:9:"expr_type";s:6:"colref";s:5:"alias";b:0;s:9:"base_expr";s:6:"usr_id";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:6:"usr_id";}}s:8:"sub_tree";b:0;s:5:"delim";s:1:",";}i:1;a:6:{s:9:"expr_type";s:6:"colref";s:5:"alias";b:0;s:9:"base_expr";s:9:"usr_login";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:9:"usr_login";}}s:8:"sub_tree";b:0;s:5:"delim";s:1:",";}i:2;a:5:{s:9:"expr_type";s:10:"expression";s:5:"alias";a:4:{s:2:"as";b:0;s:4:"name";s:11:"tipousuario";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:11:"tipousuario";}}s:9:"base_expr";s:11:"tipousuario";}s:9:"base_expr";s:191:"case id_tipousuario when 1 then 'Usuario CVE' when 2 then concat('Usuario Vendedor -', codigovendedor, '-') when 3 then concat('Usuario Vendedor Meson (', codigovendedor, ')') end tipousuario";s:8:"sub_tree";a:15:{i:0;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:4:"case";s:8:"sub_tree";b:0;}i:1;a:4:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:14:"id_tipousuario";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:14:"id_tipousuario";}}s:8:"sub_tree";b:0;}i:2;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:4:"when";s:8:"sub_tree";b:0;}i:3;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:1:"1";s:8:"sub_tree";b:0;}i:4;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:4:"then";s:8:"sub_tree";b:0;}i:5;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:13:"'Usuario CVE'";s:8:"sub_tree";b:0;}i:6;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:4:"when";s:8:"sub_tree";b:0;}i:7;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:1:"2";s:8:"sub_tree";b:0;}i:8;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:4:"then";s:8:"sub_tree";b:0;}i:9;a:3:{s:9:"expr_type";s:8:"function";s:9:"base_expr";s:6:"concat";s:8:"sub_tree";a:3:{i:0;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:20:"'Usuario Vendedor -'";s:8:"sub_tree";b:0;}i:1;a:4:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:14:"codigovendedor";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:14:"codigovendedor";}}s:8:"sub_tree";b:0;}i:2;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:3:"'-'";s:8:"sub_tree";b:0;}}}i:10;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:4:"when";s:8:"sub_tree";b:0;}i:11;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:1:"3";s:8:"sub_tree";b:0;}i:12;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:4:"then";s:8:"sub_tree";b:0;}i:13;a:3:{s:9:"expr_type";s:8:"function";s:9:"base_expr";s:6:"concat";s:8:"sub_tree";a:3:{i:0;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:26:"'Usuario Vendedor Meson ('";s:8:"sub_tree";b:0;}i:1;a:4:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:14:"codigovendedor";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:14:"codigovendedor";}}s:8:"sub_tree";b:0;}i:2;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:3:"')'";s:8:"sub_tree";b:0;}}}i:14;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:3:"end";s:8:"sub_tree";b:0;}}s:5:"delim";s:1:",";}i:3;a:5:{s:9:"expr_type";s:8:"function";s:5:"alias";a:4:{s:2:"as";b:1;s:4:"name";s:7:"nom_com";s:9:"base_expr";s:10:"as nom_com";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:7:"nom_com";}}}s:9:"base_expr";s:6:"CONCAT";s:8:"sub_tree";a:3:{i:0;a:4:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:11:"usr_nombres";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:11:"usr_nombres";}}s:8:"sub_tree";b:0;}i:1;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:3:"' '";s:8:"sub_tree";b:0;}i:2;a:4:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:13:"usr_apellidos";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:13:"usr_apellidos";}}s:8:"sub_tree";b:0;}}s:5:"delim";s:1:",";}i:4;a:6:{s:9:"expr_type";s:6:"colref";s:5:"alias";b:0;s:9:"base_expr";s:9:"cod_local";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:9:"cod_local";}}s:8:"sub_tree";b:0;s:5:"delim";b:0;}}s:4:"FROM";a:1:{i:0;a:10:{s:9:"expr_type";s:5:"table";s:5:"table";s:8:"usuarios";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:8:"usuarios";}}s:5:"alias";b:0;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:8:"usuarios";s:8:"sub_tree";b:0;}}s:5:"WHERE";a:3:{i:0;a:4:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:10:"usr_estado";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:10:"usr_estado";}}s:8:"sub_tree";b:0;}i:1;a:3:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:2:"<>";s:8:"sub_tree";b:0;}i:2;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:1:"2";s:8:"sub_tree";b:0;}}s:5:"ORDER";a:3:{i:0;a:3:{s:9:"expr_type";s:3:"pos";s:9:"base_expr";s:1:"3";s:9:"direction";s:3:"ASC";}i:1;a:3:{s:9:"expr_type";s:3:"pos";s:9:"base_expr";s:1:"1";s:9:"direction";s:3:"ASC";}i:2;a:3:{s:9:"expr_type";s:3:"pos";s:9:"base_expr";s:1:"4";s:9:"direction";s:3:"ASC";}}}

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