diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2005-09-23 09:10:28 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2005-09-23 09:10:28 +0000 |
commit | 303642578686951cd4af4433a9ddecffcca60aff (patch) | |
tree | abd2dc72a7f4a228a20226009c5ba57ec31bf473 /template.h | |
parent | f75772231a0e3d0dee046cee23993a4dbc066939 (diff) | |
download | rsyslog-303642578686951cd4af4433a9ddecffcca60aff.tar.gz rsyslog-303642578686951cd4af4433a9ddecffcca60aff.tar.bz2 rsyslog-303642578686951cd4af4433a9ddecffcca60aff.zip |
fixed a problem with MySQL field escapes
Diffstat (limited to 'template.h')
-rw-r--r-- | template.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 }; |