Skip to content
Snippets Groups Projects
Commit c8d53a16 authored by Rodrigo Ramírez Norambuena's avatar Rodrigo Ramírez Norambuena
Browse files

cdr_pgsql: Refactor magic number by definition for version

Change-Id: I43f25976aa3069793ddbe0086833965a6fb0a518
parent 62386dd1
No related branches found
No related tags found
No related merge requests found
......@@ -59,6 +59,8 @@
#define DATE_FORMAT "'%Y-%m-%d %T'"
#define PGSQL_MIN_VERSION_SCHEMA 70300
static const char name[] = "pgsql";
static const char config[] = "cdr_pgsql.conf";
......@@ -677,7 +679,7 @@ static int config_module(int reload)
}
version = PQserverVersion(conn);
if (version >= 70300) {
if (version >= PGSQL_MIN_VERSION_SCHEMA) {
char *schemaname, *tablename, *tmp_schemaname, *tmp_tablename;
if (strchr(table, '.')) {
tmp_schemaname = ast_strdupa(table);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment