Commit 99d442ef authored by Glenn Proctor's avatar Glenn Proctor
Browse files

Added brackets to enforce precedence in generic_fetch to allow MySQL 5 compatibility.

parent c8195e69
......@@ -316,7 +316,7 @@ sub generic_fetch {
#construct a nice table string like 'table1 t1, table2 t2'
my $tablenames = join(', ', map({ join(' ', @$_) } @tables));
my $sql = "SELECT $straight_join $columns\n FROM $tablenames $left_join";
my $sql = "SELECT $straight_join $columns\n FROM ($tablenames) $left_join";
my $default_where = $self->_default_where_clause;
my $final_clause = $self->_final_clause;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment