From ee6c1aedc89a22d74eb7b1b0c0aabf6259dfeb08 Mon Sep 17 00:00:00 2001 From: Magali Ruffier <mr6@ebi.ac.uk> Date: Fri, 16 Aug 2013 10:51:24 +0000 Subject: [PATCH] 'FROM' is separated by the SELECT start with a line return with rest stack trace, \n is ignored and the query looks like columnFROM it is not going to affect the running of the query, but can be confusing, so adding a space before the FROM --- modules/Bio/EnsEMBL/DBSQL/BaseAdaptor.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Bio/EnsEMBL/DBSQL/BaseAdaptor.pm b/modules/Bio/EnsEMBL/DBSQL/BaseAdaptor.pm index dc56604046..c0a61caf9a 100755 --- a/modules/Bio/EnsEMBL/DBSQL/BaseAdaptor.pm +++ b/modules/Bio/EnsEMBL/DBSQL/BaseAdaptor.pm @@ -579,7 +579,7 @@ sub _generate_sql { my $tablenames = join(', ', map({ join(' ', @$_) } @tables)); my $sql = - "SELECT $straight_join $columns\n" + "SELECT $straight_join $columns \n" . "FROM $left_join_prefix ($tablenames) $left_join"; my $default_where = $self->_default_where_clause(); -- GitLab