summaryrefslogtreecommitdiffstats
path: root/template.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2004-11-23 08:51:24 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2004-11-23 08:51:24 +0000
commitfc45231d62fdb3b75d2466d8b3b8135e17252abe (patch)
treed7fb00b39fd676f8bd3c20d86b18bb09453d6d0e /template.h
parentb6a8efa6014a062dedd205848bc891693562c282 (diff)
downloadrsyslog-fc45231d62fdb3b75d2466d8b3b8135e17252abe.tar.gz
rsyslog-fc45231d62fdb3b75d2466d8b3b8135e17252abe.tar.xz
rsyslog-fc45231d62fdb3b75d2466d8b3b8135e17252abe.zip
now includes sql option in template to escape quote chracters
Diffstat (limited to 'template.h')
-rw-r--r--template.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/template.h b/template.h
index 604c317b..52869761 100644
--- a/template.h
+++ b/template.h
@@ -10,6 +10,11 @@ struct template {
int tpenElements; /* number of elements in templateEntry list */
struct templateEntry *pEntryRoot;
struct templateEntry *pEntryLast;
+ /* 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 };