[dev.icinga.com #1974] change standard string escaping for postgresql queries to use the E'foo' notation #754
Comments
Updated by mfriedrich on 2011-11-09 08:55:18 +00:00
with postgresql 9.x this will be an error and therefore a significant bug to be resolved. question remains, if it's worth patching libdbi (needs a full rewrite on query creation), or focus on libpq and add parameter bindings to all postgresql queries removing necessary escaping. |
Updated by mfriedrich on 2011-12-19 18:37:35 +00:00
|
Updated by viaLAN on 2012-01-06 17:50:20 +00:00 workaround for posgresql 9.x users: standard_conforming_strings = off otherwise all INSERT- and UPDATE-statements containing single quote lead to errors |
Updated by mfriedrich on 2012-02-18 15:32:49 +00:00
|
Updated by mfriedrich on 2012-02-18 17:14:49 +00:00
|
Updated by mfriedrich on 2012-02-18 17:16:02 +00:00
|
Updated by mfriedrich on 2012-02-18 17:17:44 +00:00 a final query looks like this
|
Updated by mfriedrich on 2012-02-18 18:14:14 +00:00
test config
=> reschedule a new check to trigger the output to be inserted into the db without patch, postgresql 9.1 log
with patch empty logs, data fully within database.
|
Updated by mfriedrich on 2012-03-04 12:40:14 +00:00
|
Updated by mfriedrich on 2012-03-04 12:40:24 +00:00
|
Updated by mfriedrich on 2012-03-28 10:35:22 +00:00
|
Updated by mfriedrich on 2012-04-12 18:03:44 +00:00
for 1.6.x a workaround by formorer |
Updated by mfriedrich on 2014-12-08 14:35:57 +00:00
|
This issue has been migrated from Redmine: https://dev.icinga.com/issues/1974
Created by mfriedrich on 2011-10-03 07:25:45 +00:00
Assignee: mfriedrich
Status: Resolved (closed on 2012-03-28 10:35:22 +00:00)
Target Version: 1.7
Last Update: 2014-12-08 14:35:57 +00:00 (in Redmine)
this can be done otherwise, but needs further investigation how this works out with libdbi.
Attachments
Changesets
2012-02-18 17:23:41 +00:00 by mfriedrich 62344c3
2012-04-28 09:14:04 +00:00 by mfriedrich 6332556
Relations:
The text was updated successfully, but these errors were encountered: