File: tests/expected/parser/issue33c.serialized

Recommend this page to a friend!
  Classes of Michael Cummings  >  PHP SQL Parser Class  >  tests/expected/parser/issue33c.serialized  >  Download  
File: tests/expected/parser/issue33c.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,668 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:79:" (a varchar(1000) NOT NULL, CONSTRAINT hohoho_pk PRIMARY KEY (a), 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:24:"a varchar(1000) NOT NULL";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:22:"varchar(1000) NOT 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: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";}}}i:2;a:2:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:3:"NOT";}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:0;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:36:"CONSTRAINT hohoho_pk PRIMARY KEY (a)";s:8:"sub_tree";a:4:{i:0;a:3:{s:9:"expr_type";s:10:"constraint";s:9:"base_expr";s:21:" CONSTRAINT hohoho_pk";s:8:"sub_tree";a:2:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:9:"hohoho_pk";}}i:1;a:2:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:7:"PRIMARY";}i:2;a:2:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:3:"KEY";}i:3;a:3:{s:9:"expr_type";s:11:"column-list";s:9:"base_expr";s:3:"(a)";s:8:"sub_tree";a:1:{i:0;a:6:{s:9:"expr_type";s:12:"index-column";s:9:"base_expr";s:1:"a";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";b:0;s:3:"dir";b:0;}}}}}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;}}

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