Skip to content

Commit 0704085

Browse files
author
Till Brehm
committed
Merge branch 'patch-1' into 'master'
Fixed "Wrong QuerySQL-Query" in aps_installer `db->queryOneRecord` does add `LIMIT 0,1` to the end of the statement resulting in a syntax error due to the misplaced semicolon: `Thu Jan 12 21:41:01 CET 2017 12.01.2017-20:41 - WARNING - Falsche Anfrage / Wrong QuerySQL-Query = SELECT VERSION() as ver; LIMIT 0,1 -> 1064 (You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 0,1' at line 1)` See merge request !504
2 parents 632dd86 + 2bd5ce7 commit 0704085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/lib/classes/aps_installer.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ private function prepareDatabase($task, $sxe)
306306
$db_id = parent::getXPathValue($sxe, '//db:id');
307307
if(empty($db_id)) return; // No database needed
308308

309-
$mysqlver_res = $app->db->queryOneRecord('SELECT VERSION() as ver;');
309+
$mysqlver_res = $app->db->queryOneRecord('SELECT VERSION() as ver');
310310
$mysqlver = $mysqlver_res['ver'];
311311

312312
$tmp = $app->db->queryOneRecord("SELECT value FROM aps_instances_settings WHERE name = 'main_database_password' AND instance_id = ?", $task['instance_id']);

0 commit comments

Comments
 (0)