Hi,
But this works as it is. Under what conditions do you recreate error? Lastly
what about the binds wouldn't they need escaping, too, if strings?
BR,
Nikos
----- Original Message -----
From: "Vincent CHAVANIS" <v.chava...@telemaque.fr>
To: <devel@kannel.org>
Sent: Friday, October 09, 2009 4:21 PM
Subject: [PATCH] dlr_mysql.c - Table name fix
Hi all,
Here is a patch that escape table names from mysql specs.
This will fix the SQL syntax error.
Simple POC (set your mysql conf as this)
group = dlr-db
id = mydlr
table = SELECT
You will get : ERROR 1064 (42000): You have an error in your SQL syntax;
Vincent
--
Telemaque - 06560 SOPHIA-ANTIPOLIS - (FR)
Service Technique/Reseau - NOC
Direction du Developpement xMS+
http://www.telemaque.fr/
v.chava...@telemaque.fr
Tel : +33 4 92 90 99 84 (fax 9142)