PHP Classes

File: tests/expected/parser/issue33h.serialized

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

Contents

Class file image Download
a:2:{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:6:{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:18:" (a varchar(1000))";s:8:"sub_tree";a:1:{i:0;a:4:{s:9:"expr_type";s:10:"column-def";s:9:"base_expr";s:15:"a varchar(1000)";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:13:"varchar(1000)";s:8:"sub_tree";a:2:{i:0;a:4:{s:9:"expr_type";s:9:"data-type";s:9:"base_expr";s:7:"varchar";s:6:"length";s:4:"1000";s:8:"position";i:23;}i:1;a:4:{s:9:"expr_type";s:18:"bracket_expression";s:9:"base_expr";s:6:"(1000)";s:8:"sub_tree";a:1:{i:0;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:4:"1000";s:8:"position";i:31;}}s:8:"position";i:30;}}s:6:"unique";b:0;s:8:"nullable";b:1;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";a:3:{i:0;a:5:{s:9:"expr_type";s:10:"expression";s:9:"base_expr";s:10:"ENGINE=xyz";s:5:"delim";s:1:",";s:8:"sub_tree";a:3:{i:0;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:6:"ENGINE";s:8:"position";i:38;}i:1;a:3:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:1:"=";s:8:"position";i:44;}i:2;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:3:"xyz";s:8:"position";i:45;}}s:8:"position";i:38;}i:1;a:5:{s:9:"expr_type";s:10:"expression";s:9:"base_expr";s:14:"COMMENT='haha'";s:5:"delim";s:1:" ";s:8:"sub_tree";a:3:{i:0;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:7:"COMMENT";s:8:"position";i:49;}i:1;a:3:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:1:"=";s:8:"position";i:56;}i:2;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:6:"'haha'";s:8:"position";i:57;}}s:8:"position";i:49;}i:2;a:5:{s:9:"expr_type";s:9:"collation";s:9:"base_expr";s:35:"DEFAULT COLLATE = latin1_german2_ci";s:5:"delim";s:1:" ";s:8:"sub_tree";a:4:{i:0;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:7:"DEFAULT";s:8:"position";i:64;}i:1;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:7:"COLLATE";s:8:"position";i:72;}i:2;a:3:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:1:"=";s:8:"position";i:80;}i:3;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:17:"latin1_german2_ci";s:8:"position";i:82;}}s:8:"position";i:64;}}s:8:"position";i:13;}}