summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorRodrigo Ramírez Norambuena <decipher.hk@gmail.com>2015-05-01 23:14:31 -0400
committerRodrigo Ramírez Norambuena <decipher.hk@gmail.com>2015-05-05 07:59:12 -0400
commitcb79b8ab8070b9ebd2c162128ed555f2d3c2f718 (patch)
tree3f61ad2d4664a696004bf388b6c0afd5c324ab62 /configs
parent32eb812b28ffc1745e08cb507d8c4409d3ed297a (diff)
cel_pgsql: Add support for setting schema
Add feature to set optional schema parameter on configuration file via 'schema' setting. Fix query to get columns from table while considering schema. If in the database there exists two tables with same name in distinct schemas it will return an error when inserting record. ASTERISK-24967 #close Change-Id: I691fd2cbc277fcba10e615f5884f8de5d8152f2c
Diffstat (limited to 'configs')
-rw-r--r--configs/samples/cel_pgsql.conf.sample2
1 files changed, 2 insertions, 0 deletions
diff --git a/configs/samples/cel_pgsql.conf.sample b/configs/samples/cel_pgsql.conf.sample
index 30c789e4c..13fe06926 100644
--- a/configs/samples/cel_pgsql.conf.sample
+++ b/configs/samples/cel_pgsql.conf.sample
@@ -68,4 +68,6 @@
;password=password
;user=postgres
;table=cel ;SQL table where CEL's will be inserted
+;schema=public ;Schema where CEL's table is located. Optional parameter.
+ ;If schema support is present the default value used will be current_schema().
;appname=asterisk ; Postgres application_name support (optional). Whitespace not allowed.