summaryrefslogtreecommitdiffstats
path: root/template.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2005-09-23 09:10:28 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2005-09-23 09:10:28 +0000
commit303642578686951cd4af4433a9ddecffcca60aff (patch)
treeabd2dc72a7f4a228a20226009c5ba57ec31bf473 /template.h
parentf75772231a0e3d0dee046cee23993a4dbc066939 (diff)
downloadrsyslog-303642578686951cd4af4433a9ddecffcca60aff.tar.gz
rsyslog-303642578686951cd4af4433a9ddecffcca60aff.tar.xz
rsyslog-303642578686951cd4af4433a9ddecffcca60aff.zip
fixed a problem with MySQL field escapes
Diffstat (limited to 'template.h')
-rw-r--r--template.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/template.h b/template.h
index 6e16f25a..8c89eafe 100644
--- a/template.h
+++ b/template.h
@@ -16,11 +16,14 @@ struct template {
int tpenElements; /* number of elements in templateEntry list */
struct templateEntry *pEntryRoot;
struct templateEntry *pEntryLast;
+ char optFormatForSQL; /* in text fields, 0 - do not escape,
+ * 1 - escape quotes by double quotes,
+ * 2 - escape "the MySQL way"
+ */
/* following are options. All are 0/1 defined (either on or off).
* we use chars because they are faster than bit fields and smaller
* than short...
*/
- char optFormatForSQL; /* in text fields, escape quotes by double quotes */
};
enum EntryTypes { UNDEFINED = 0, CONSTANT = 1, FIELD = 2 };