Revision history for SQL::Abstract
+ - Fix parsing of foo.* in SQLA::Tree
+
revision 1.71 2010-11-09
----------------------------
- Add EXECUTING for clarity of long running SQL
my $all_known_re = join("\n\t|\n",
$expr_start_re,
$binary_op_re,
- "$op_look_behind (?i: AND|OR|NOT ) $op_look_ahead",
- (map { quotemeta $_ } qw/, ( ) */),
+ "$op_look_behind (?i: AND|OR|NOT|\\* ) $op_look_ahead",
+ (map { quotemeta $_ } qw/, ( )/),
$placeholder_re,
);
my $sqlat = SQL::Abstract::Tree->new;
-cmp_deeply($sqlat->parse("SELECT a, b, c FROM foo WHERE foo.a =1 and foo.b LIKE 'station'"), [
+cmp_deeply($sqlat->parse("SELECT a, b.*, * FROM foo WHERE foo.a =1 and foo.b LIKE 'station'"), [
[
[
"SELECT",
[
"LITERAL",
[
- "b"
+ "b.*"
]
],
[
"LITERAL",
[
- "c"
+ "*"
]
]
]