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
This commit is contained in:
Rodrigo Ramírez Norambuena
2015-05-01 23:14:31 -04:00
parent 32eb812b28
commit cb79b8ab80
3 changed files with 58 additions and 8 deletions

View File

@@ -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.