PHP Classes

File: tests/expected/parser/issue33j.serialized

Recommend this page to a friend!
  Classes of Michael Cummings   PHP SQL Parser Class   tests/expected/parser/issue33j.serialized   Download  
File: tests/expected/parser/issue33j.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,174 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:1;s:9:"base_expr";s:40:"TEMPORARY TABLE IF NOT EXISTS";s:8:"sub_tree";a:5:{i:0;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:9:"TEMPORARY";s:8:"position";i:7;}i:1;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:5:"TABLE";s:8:"position";i:17;}i:2;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:2:"IF";s:8:"position";i:23;}i:3;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:3:"NOT";s:8:"position";i:28;}i:4;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:6:"EXISTS";s:8:"position";i:41;}}s:8:"position";i:7;}s:5:"TABLE";a:6:{s:9:"base_expr";s:5:"turma";s:4:"name";s:5:"turma";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:5:"turma";}}s:10:"create-def";a:4:{s:9:"expr_type";s:18:"bracket_expression";s:9:"base_expr";s:114:"(id text NOT NULL , nome text NOT NULL , nota1 int NOT NULL , nota2 int NOT NULL )";s:8:"sub_tree";a:4:{i:0;a:4:{s:9:"expr_type";s:10:"column-def";s:9:"base_expr";s:16:"id text NOT NULL";s:8:"sub_tree";a:2:{i:0;a:4:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:2:"id";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:2:"id";}}s:8:"position";i:54;}i:1;a:8:{s:9:"expr_type";s:11:"column-type";s:9:"base_expr";s:13:"text NOT NULL";s:8:"sub_tree";a:3:{i:0;a:4:{s:9:"expr_type";s:9:"data-type";s:9:"base_expr";s:4:"text";s:6:"binary";b:0;s:8:"position";i:57;}i:1;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:3:"NOT";s:8:"position";i:62;}i:2;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:4:"NULL";s:8:"position";i:66;}}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:57;}}s:8:"position";i:54;}i:1;a:4:{s:9:"expr_type";s:10:"column-def";s:9:"base_expr";s:18:"nome text NOT NULL";s:8:"sub_tree";a:2:{i:0;a:4:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:4:"nome";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:4:"nome";}}s:8:"position";i:81;}i:1;a:8:{s:9:"expr_type";s:11:"column-type";s:9:"base_expr";s:13:"text NOT NULL";s:8:"sub_tree";a:3:{i:0;a:4:{s:9:"expr_type";s:9:"data-type";s:9:"base_expr";s:4:"text";s:6:"binary";b:0;s:8:"position";i:86;}i:1;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:3:"NOT";s:8:"position";i:91;}i:2;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:4:"NULL";s:8:"position";i:95;}}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:86;}}s:8:"position";i:81;}i:2;a:4:{s:9:"expr_type";s:10:"column-def";s:9:"base_expr";s:18:"nota1 int NOT NULL";s:8:"sub_tree";a:2:{i:0;a:4:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:5:"nota1";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:5:"nota1";}}s:8:"position";i:110;}i:1;a:8:{s:9:"expr_type";s:11:"column-type";s:9:"base_expr";s:12:"int 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:3:"int";s:8:"unsigned";b:0;s:8:"zerofill";b:0;s:6:"length";b:0;s:8:"position";i:116;}i:1;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:3:"NOT";s:8:"position";i:120;}i:2;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:4:"NULL";s:8:"position";i:124;}}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:116;}}s:8:"position";i:110;}i:3;a:4:{s:9:"expr_type";s:10:"column-def";s:9:"base_expr";s:18:"nota2 int NOT NULL";s:8:"sub_tree";a:2:{i:0;a:4:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:5:"nota2";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:5:"nota2";}}s:8:"position";i:139;}i:1;a:8:{s:9:"expr_type";s:11:"column-type";s:9:"base_expr";s:12:"int 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:3:"int";s:8:"unsigned";b:0;s:8:"zerofill";b:0;s:6:"length";b:0;s:8:"position";i:145;}i:1;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:3:"NOT";s:8:"position";i:149;}i:2;a:3:{s:9:"expr_type";s:8:"reserved";s:9:"base_expr";s:4:"NULL";s:8:"position";i:153;}}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:145;}}s:8:"position";i:139;}}s:8:"position";i:53;}s:7:"options";b:0;s:8:"position";i:48;}}