]> git.ipfire.org Git - thirdparty/asterisk.git/commit
func_odbc: Add SQL_ESC_BACKSLASHES dialplan function.
authorJoshua C. Colp <jcolp@sangoma.com>
Thu, 10 Feb 2022 12:02:23 +0000 (08:02 -0400)
committerJoshua Colp <jcolp@sangoma.com>
Thu, 14 Apr 2022 21:57:38 +0000 (16:57 -0500)
commita201ececba46ee0f6ade47a970cc6bd4ce113bd5
treefeb6503ec961f7403a29580b238dbca1c7164887
parentfda5e507a33c0e18aefda46aac43d5dd031d7275
func_odbc: Add SQL_ESC_BACKSLASHES dialplan function.

Some databases depending on their configuration using backslashes
for escaping. When combined with the use of ' this can result in
a broken func_odbc query.

This change adds a SQL_ESC_BACKSLASHES dialplan function which can
be used to escape the backslashes.

This is done as a dialplan function instead of being always done
as some databases do not require this, and always doing it would
result in incorrect data being put into the database.

ASTERISK-29838

Change-Id: I152bf34899b96ddb09cca3e767254d8d78f0c83d
configs/samples/func_odbc.conf.sample
doc/CHANGES-staging/func_odbc_esc_backslashes.txt [new file with mode: 0644]
funcs/func_odbc.c