]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/DBUtils.pm
Variablen zwischenspeichern und wiederherstellen, sofern sie existieren, auch wenn...
[kivitendo-erp.git] / SL / DBUtils.pm
index 19e1aa15a966333c9804ebe3f3e53a86c05119ca..a3b9826a7a558861bbda01ec12de53ce4a3a081d 100644 (file)
@@ -96,7 +96,7 @@ sub quote_db_date {
   return "NULL" unless defined $str;
   return "current_date" if $str =~ /current_date/;
 
-  $str =~ s/'/''/g;
+  $str =~ s/\'/\'\'/g;
   return "'$str'";
 }
 
@@ -147,7 +147,7 @@ sub selectall_hashref_query {
 
   $main::lxdebug->leave_sub(2);
 
-  return $result;
+  return wantarray ? @{ $result } : $result;
 }
 
 sub selectall_array_query {