From: Dagfinn Ilmari Mannsåker Date: Fri, 26 Jan 2018 22:59:23 +0000 (+0000) Subject: Remove pointless quoting of single variables X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a9e945083b11d3931b24c44a5f5cbc4d3345f014;p=scpubgit%2FQ-Branch.git Remove pointless quoting of single variables By moving the spaces into adjacent SQL literals --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index f31fb53..099a221 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -372,7 +372,7 @@ sub update { unless ref $data eq 'HASH'; my ($sql, @all_bind) = $self->_update_set_values($data); - $sql = $self->_sqlcase('update') . " $table " . $self->_sqlcase('set ') + $sql = $self->_sqlcase('update ') . $table . $self->_sqlcase(' set ') . $sql; if ($where) { @@ -487,7 +487,7 @@ sub delete { my $options = shift; my($where_sql, @bind) = $self->where($where); - my $sql = $self->_sqlcase('delete from') . " $table" . $where_sql; + my $sql = $self->_sqlcase('delete from ') . $table . $where_sql; if ($options->{returning}) { my ($returning_sql, @returning_bind) = $self->_delete_returning($options);