diff --git a/modules/db_postgres/res.c b/modules/db_postgres/res.c index fd954b78371..39df5816bda 100644 --- a/modules/db_postgres/res.c +++ b/modules/db_postgres/res.c @@ -151,8 +151,8 @@ int db_postgres_get_columns(const db_con_t* _h, db_res_t* _r) case VARCHAROID: case BPCHAROID: case TEXTOID: - LM_DBG("use DB_STRING result type\n"); - RES_TYPES(_r)[col] = DB_STRING; + LM_DBG("use DB_STR result type\n"); + RES_TYPES(_r)[col] = DB_STR; break; case BYTEAOID: @@ -170,7 +170,7 @@ int db_postgres_get_columns(const db_con_t* _h, db_res_t* _r) LM_WARN("unhandled data type column (%.*s) type id (%d), " "use DB_STRING as default\n", RES_NAMES(_r)[col]->len, RES_NAMES(_r)[col]->s, datatype); - RES_TYPES(_r)[col] = DB_STRING; + RES_TYPES(_r)[col] = DB_STR; break; } }