PHP Classes

File: tests/expected/parser/issue33f.serialized

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

Contents

Class file image Download
a:2:{s:6:"CREATE";a:4:{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:2:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:5:"TABLE";}}}s:5:"TABLE";a:5:{s:9:"base_expr";s:14:""cachetable01"";s:4:"name";s:14:""cachetable01"";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:12:"cachetable01";}}s:10:"create-def";a:3:{s:9:"expr_type";s:18:"bracket_expression";s:9:"base_expr";s:196:" ( "sp_id" varchar(240) DEFAULT NULL, "ro" varchar(240) DEFAULT NULL, "balance" varchar(240) DEFAULT NULL, "last_cache_timestamp" varchar(25) DEFAULT NULL )";s:8:"sub_tree";a:4:{i:0;a:3:{s:9:"expr_type";s:10:"column-def";s:9:"base_expr";s:33:""sp_id" varchar(240) DEFAULT NULL";s:8:"sub_tree";a:2:{i:0;a:3:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:7:""sp_id"";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:5:"sp_id";}}}i:1;a:7:{s:9:"expr_type";s:11:"column-type";s:9:"base_expr";s:25:"varchar(240) DEFAULT NULL";s:8:"sub_tree";a:4:{i:0;a:3:{s:9:"expr_type";s:9:"data-type";s:9:"base_expr";s:7:"varchar";s:6:"length";s:3:"240";}i:1;a:3:{s:9:"expr_type";s:18:"bracket_expression";s:9:"base_expr";s:5:"(240)";s:8:"sub_tree";a:1:{i:0;a:2:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:3:"240";}}}i:2;a:2:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:7:"DEFAULT";}i:3;a:2:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:4:"NULL";}}s:6:"unique";b:0;s:8:"nullable";b:1;s:8:"auto_inc";b:0;s:7:"primary";b:0;}}}i:1;a:3:{s:9:"expr_type";s:10:"column-def";s:9:"base_expr";s:30:""ro" varchar(240) DEFAULT NULL";s:8:"sub_tree";a:2:{i:0;a:3:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:4:""ro"";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:2:"ro";}}}i:1;a:7:{s:9:"expr_type";s:11:"column-type";s:9:"base_expr";s:25:"varchar(240) DEFAULT NULL";s:8:"sub_tree";a:4:{i:0;a:3:{s:9:"expr_type";s:9:"data-type";s:9:"base_expr";s:7:"varchar";s:6:"length";s:3:"240";}i:1;a:3:{s:9:"expr_type";s:18:"bracket_expression";s:9:"base_expr";s:5:"(240)";s:8:"sub_tree";a:1:{i:0;a:2:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:3:"240";}}}i:2;a:2:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:7:"DEFAULT";}i:3;a:2:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:4:"NULL";}}s:6:"unique";b:0;s:8:"nullable";b:1;s:8:"auto_inc";b:0;s:7:"primary";b:0;}}}i:2;a:3:{s:9:"expr_type";s:10:"column-def";s:9:"base_expr";s:35:""balance" varchar(240) DEFAULT NULL";s:8:"sub_tree";a:2:{i:0;a:3:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:9:""balance"";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:7:"balance";}}}i:1;a:7:{s:9:"expr_type";s:11:"column-type";s:9:"base_expr";s:25:"varchar(240) DEFAULT NULL";s:8:"sub_tree";a:4:{i:0;a:3:{s:9:"expr_type";s:9:"data-type";s:9:"base_expr";s:7:"varchar";s:6:"length";s:3:"240";}i:1;a:3:{s:9:"expr_type";s:18:"bracket_expression";s:9:"base_expr";s:5:"(240)";s:8:"sub_tree";a:1:{i:0;a:2:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:3:"240";}}}i:2;a:2:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:7:"DEFAULT";}i:3;a:2:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:4:"NULL";}}s:6:"unique";b:0;s:8:"nullable";b:1;s:8:"auto_inc";b:0;s:7:"primary";b:0;}}}i:3;a:3:{s:9:"expr_type";s:10:"column-def";s:9:"base_expr";s:47:""last_cache_timestamp" varchar(25) DEFAULT NULL";s:8:"sub_tree";a:2:{i:0;a:3:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:22:""last_cache_timestamp"";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:20:"last_cache_timestamp";}}}i:1;a:7:{s:9:"expr_type";s:11:"column-type";s:9:"base_expr";s:24:"varchar(25) DEFAULT NULL";s:8:"sub_tree";a:4:{i:0;a:3:{s:9:"expr_type";s:9:"data-type";s:9:"base_expr";s:7:"varchar";s:6:"length";s:2:"25";}i:1;a:3:{s:9:"expr_type";s:18:"bracket_expression";s:9:"base_expr";s:4:"(25)";s:8:"sub_tree";a:1:{i:0;a:2:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:2:"25";}}}i:2;a:2:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:7:"DEFAULT";}i:3;a:2:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:4:"NULL";}}s:6:"unique";b:0;s:8:"nullable";b:1;s:8:"auto_inc";b:0;s:7:"primary";b:0;}}}}}s:7:"options";a:2:{i:0;a:4:{s:9:"expr_type";s:10:"expression";s:9:"base_expr";s:13:"ENGINE=InnoDB";s:5:"delim";s:1:" ";s:8:"sub_tree";a:3:{i:0;a:2:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:6:"ENGINE";}i:1;a:2:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:1:"=";}i:2;a:2:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:6:"InnoDB";}}}i:1;a:4:{s:9:"expr_type";s:13:"character-set";s:9:"base_expr";s:28:"DEFAULT CHARACTER SET=latin1";s:5:"delim";s:1:" ";s:8:"sub_tree";a:5:{i:0;a:2:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:7:"DEFAULT";}i:1;a:2:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:9:"CHARACTER";}i:2;a:2:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:3:"SET";}i:3;a:2:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:1:"=";}i:4;a:2:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:6:"latin1";}}}}}}