PHP Classes

File: tests/expected/parser/issue33g.serialized

Recommend this page to a friend!
  Classes of Michael Cummings   PHP SQL Parser Class   tests/expected/parser/issue33g.serialized   Download  
File: tests/expected/parser/issue33g.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: 6 years ago
Size: 3,220 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: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:3:{s:9:"expr_type";s:18:"bracket_expression";s:9:"base_expr";s:102:" (a varchar(1000), PRIMARY KEY USING btree (a(5) ASC) key_block_size 4 with parser haha, CHECK(a > 5))";s:8:"sub_tree";a:3:{i:0;a:3:{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:3:{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";}}}i:1;a:7:{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:3:{s:9:"expr_type";s:9:"data-type";s:9:"base_expr";s:7:"varchar";s:6:"length";s:4:"1000";}i:1;a:3:{s:9:"expr_type";s:18:"bracket_expression";s:9:"base_expr";s:6:"(1000)";s:8:"sub_tree";a:1:{i:0;a:2:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:4:"1000";}}}}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:11:"primary-key";s:9:"base_expr";s:68:"PRIMARY KEY USING btree (a(5) ASC) key_block_size 4 with parser haha";s:8:"sub_tree";a:6:{i:0;a:2:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:7:"PRIMARY";}i:1;a:2:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:3:"KEY";}i:2;a:3:{s:9:"expr_type";s:10:"index-type";s:9:"base_expr";s:11:"USING btree";s:8:"sub_tree";a:2:{i:0;a:2:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:5:"USING";}i:1;a:2:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:5:"btree";}}}i:3;a:3:{s:9:"expr_type";s:11:"column-list";s:9:"base_expr";s:10:"(a(5) ASC)";s:8:"sub_tree";a:1:{i:0;a:6:{s:9:"expr_type";s:12:"index-column";s:9:"base_expr";s:8:"a(5) ASC";s:4:"name";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:6:"length";s:1:"5";s:3:"dir";s:3:"ASC";}}}i:4;a:3:{s:9:"expr_type";s:10:"index-size";s:9:"base_expr";s:16:"key_block_size 4";s:8:"sub_tree";a:2:{i:0;a:2:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:14:"key_block_size";}i:1;a:2:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:1:"4";}}}i:5;a:3:{s:9:"expr_type";s:12:"index-parser";s:9:"base_expr";s:16:"with parser haha";s:8:"sub_tree";a:3:{i:0;a:2:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:4:"with";}i:1;a:2:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:6:"parser";}i:2;a:2:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:4:"haha";}}}}}i:2;a:3:{s:9:"expr_type";s:5:"check";s:9:"base_expr";s:12:"CHECK(a > 5)";s:8:"sub_tree";a:2:{i:0;a:2:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:5:"CHECK";}i:1;a:3:{s:9:"expr_type";s:18:"bracket_expression";s:9:"base_expr";s:7:"(a > 5)";s:8:"sub_tree";a:3:{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:"sub_tree";b:0;}i:1;a:3:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:1:">";s:8:"sub_tree";b:0;}i:2;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:1:"5";s:8:"sub_tree";b:0;}}}}}}}s:7:"options";b:0;}}