logie17 has asked for the wisdom of the Perl Monks concerning the following question:
statement => sub { my $parser1 = SQL::Parser->new('ANSI'); $parser1->parse(shift(@_)); my $parsed_statement1 = $parser1->structure(); delete $parsed_statement1->{original_string}; my $parser2 = SQL::Parser->new('ANSI'); $parser2->parse("UPDATE users SET login_failures = (login_failures + 1) WHERE user_id = 1"); my $parsed_statement2 = $parser2->structure(); delete $parsed_statement2->{original_string}; return Dumper($parsed_statement2) eq Dumper($parsed_statement1); }, results => [[ 'rows' ], []]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: This mocks me
by stvn (Monsignor) on Jul 31, 2007 at 22:15 UTC | |
|
Re: This mocks me
by CountZero (Bishop) on Aug 01, 2007 at 06:27 UTC |