File: tests/expected/parser/issue33l.serialized

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

 

Contents

Class file image Download
a:5:{s:6:"CREATE";a:5:{s:9:"expr_type";s:5:"table";s:10:"not-exists";b:0;s:9:"base_expr";s:5:"TABLE";s:8:"sub_tree";a:1:{i:0;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:5:"TABLE";s:8:"position";i:7;}}s:8:"position";i:7;}s:5:"TABLE";a:7:{s:9:"base_expr";s:6:"hohoho";s:4:"name";s:6:"hohoho";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:6:"hohoho";}}s:10:"create-def";a:4:{s:9:"expr_type";s:18:"bracket_expression";s:9:"base_expr";s:21:" (a integer not null)";s:8:"sub_tree";a:1:{i:0;a:4:{s:9:"expr_type";s:10:"column-def";s:9:"base_expr";s:18:"a integer not null";s:8:"sub_tree";a:2:{i:0;a:4:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:1:"a";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:1:"a";}}s:8:"position";i:21;}i:1;a:8:{s:9:"expr_type";s:11:"column-type";s:9:"base_expr";s:16:"integer not null";s:8:"sub_tree";a:3:{i:0;a:6:{s:9:"expr_type";s:9:"data-type";s:9:"base_expr";s:7:"integer";s:8:"unsigned";b:0;s:8:"zerofill";b:0;s:6:"length";b:0;s:8:"position";i:23;}i:1;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:3:"not";s:8:"position";i:31;}i:2;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:4:"null";s:8:"position";i:35;}}s:6:"unique";b:0;s:8:"nullable";b:0;s:8:"auto_inc";b:0;s:7:"primary";b:0;s:8:"position";i:23;}}s:8:"position";i:21;}}s:8:"position";i:19;}s:7:"options";b:0;s:13:"select-option";a:5:{s:9:"base_expr";s:10:"REPLACE AS";s:10:"duplicates";s:7:"REPLACE";s:2:"as";b:1;s:8:"sub_tree";a:2:{i:0;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:7:"REPLACE";s:8:"position";i:41;}i:1;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:2:"AS";s:8:"position";i:49;}}s:8:"position";i:41;}s:8:"position";i:13;}s:6:"SELECT";a:2:{i:0;a:6:{s:9:"expr_type";s:8:"reserved";s:5:"alias";b:0;s:9:"base_expr";s:8:"DISTINCT";s:8:"sub_tree";b:0;s:5:"delim";s:1:" ";s:8:"position";i:59;}i:1;a:6:{s:9:"expr_type";s:6:"colref";s:5:"alias";b:0;s:9:"base_expr";s:1:"*";s:8:"sub_tree";b:0;s:5:"delim";b:0;s:8:"position";i:68;}}s:4:"FROM";a:1:{i:0;a:11:{s:9:"expr_type";s:5:"table";s:5:"table";s:4:"abcd";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:4:"abcd";}}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:4:"abcd";s:8:"sub_tree";b:0;s:8:"position";i:75;}}s:5:"WHERE";a:3:{i:0;a:5:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:1:"x";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:1:"x";}}s:8:"sub_tree";b:0;s:8:"position";i:86;}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:87;}i:2;a:4:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:1:"5";s:8:"sub_tree";b:0;s:8:"position";i:88;}}}

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