PHP Classes

File: tests/expected/parser/issue25.serialized

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

Contents

Class file image Download
a:3:{s:6:"SELECT";a:1:{i:0;a:5:{s:9:"expr_type";s:6:"colref";s:5:"alias";b:0;s:9:"base_expr";s:1:"*";s:8:"sub_tree";b:0;s:5:"delim";b:0;}}s:4:"FROM";a:1:{i:0;a:10:{s:9:"expr_type";s:5:"table";s:5:"table";s:8:"contacts";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:8:"contacts";}}s:5:"alias";b:0;s:5:"hints";b:0;s:9:"join_type";s:4:"JOIN";s:8:"ref_type";b:0;s:10:"ref_clause";b:0;s:9:"base_expr";s:8:"contacts";s:8:"sub_tree";b:0;}}s:5:"WHERE";a:3:{i:0;a:4:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:11:"contacts.id";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:8:"contacts";i:1;s:2:"id";}}s:8:"sub_tree";b:0;}i:1;a:3:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:2:"IN";s:8:"sub_tree";b:0;}i:2;a:3:{s:9:"expr_type";s:8:"subquery";s:9:"base_expr";s:285:"(SELECT email_addr_bean_rel.bean_id FROM email_addr_bean_rel, email_addresses WHERE email_addresses.id = email_addr_bean_rel.email_address_id AND email_addr_bean_rel.deleted = 0 AND email_addr_bean_rel.bean_module = 'Contacts' AND email_addresses.email_address IN ("test@example.com"))";s:8:"sub_tree";a:3:{s:6:"SELECT";a:1:{i:0;a:6:{s:9:"expr_type";s:6:"colref";s:5:"alias";b:0;s:9:"base_expr";s:27:"email_addr_bean_rel.bean_id";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:19:"email_addr_bean_rel";i:1;s:7:"bean_id";}}s:8:"sub_tree";b:0;s:5:"delim";b:0;}}s:4:"FROM";a:2:{i:0;a:10:{s:9:"expr_type";s:5:"table";s:5:"table";s:19:"email_addr_bean_rel";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:19:"email_addr_bean_rel";}}s:5:"alias";b:0;s:5:"hints";b:0;s:9:"join_type";s:4:"JOIN";s:8:"ref_type";b:0;s:10:"ref_clause";b:0;s:9:"base_expr";s:19:"email_addr_bean_rel";s:8:"sub_tree";b:0;}i:1;a:10:{s:9:"expr_type";s:5:"table";s:5:"table";s:15:"email_addresses";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:15:"email_addresses";}}s:5:"alias";b:0;s:5:"hints";b:0;s:9:"join_type";s:5:"CROSS";s:8:"ref_type";b:0;s:10:"ref_clause";b:0;s:9:"base_expr";s:15:"email_addresses";s:8:"sub_tree";b:0;}}s:5:"WHERE";a:15:{i:0;a:4:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:18:"email_addresses.id";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:15:"email_addresses";i:1;s:2:"id";}}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:4:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:36:"email_addr_bean_rel.email_address_id";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:19:"email_addr_bean_rel";i:1;s:16:"email_address_id";}}s:8:"sub_tree";b:0;}i:3;a:3:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:3:"AND";s:8:"sub_tree";b:0;}i:4;a:4:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:27:"email_addr_bean_rel.deleted";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:19:"email_addr_bean_rel";i:1;s:7:"deleted";}}s:8:"sub_tree";b:0;}i:5;a:3:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:1:"=";s:8:"sub_tree";b:0;}i:6;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:1:"0";s:8:"sub_tree";b:0;}i:7;a:3:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:3:"AND";s:8:"sub_tree";b:0;}i:8;a:4:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:31:"email_addr_bean_rel.bean_module";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:19:"email_addr_bean_rel";i:1;s:11:"bean_module";}}s:8:"sub_tree";b:0;}i:9;a:3:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:1:"=";s:8:"sub_tree";b:0;}i:10;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:10:"'Contacts'";s:8:"sub_tree";b:0;}i:11;a:3:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:3:"AND";s:8:"sub_tree";b:0;}i:12;a:4:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:29:"email_addresses.email_address";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:15:"email_addresses";i:1;s:13:"email_address";}}s:8:"sub_tree";b:0;}i:13;a:3:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:2:"IN";s:8:"sub_tree";b:0;}i:14;a:3:{s:9:"expr_type";s:7:"in-list";s:9:"base_expr";s:20:"("test@example.com")";s:8:"sub_tree";a:1:{i:0;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:18:""test@example.com"";s:8:"sub_tree";b:0;}}}}}}}}