From 09e1dc814da2534080093bdf6b96305a16d9d0a9 Mon Sep 17 00:00:00 2001 From: Meatballs Date: Mon, 24 Jun 2013 23:20:34 +0100 Subject: [PATCH] Fix concat --- lib/core/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/agent.py b/lib/core/agent.py index b46749810..d3d9f3e07 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -525,7 +525,7 @@ class Agent(object): else: return query - if Backend.isDbms(DBMS.MYSQL): + if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.HSQL): if fieldsExists: concatenatedQuery = concatenatedQuery.replace("SELECT ", "CONCAT('%s'," % kb.chars.start, 1) concatenatedQuery += ",'%s')" % kb.chars.stop