浏览代码

- db_postgres and db_unixodbc handles TEXT colums now as DB_BLOB type similar
to the other database modules
- activate warning in db_unixodbc for unhandled data types
- closes bug #1940022


git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@4058 689a6050-402a-0410-94f2-e92a70836424

Henning Westerholt 17 年之前
父节点
当前提交
1eda31e3f7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/db_postgres/km_db_res.c

+ 1 - 1
modules/db_postgres/km_db_res.c

@@ -154,11 +154,11 @@ int db_postgres_get_columns(const db_con_t* _h, db_res_t* _r)
 			case CHAROID:
 			case VARCHAROID:
 			case BPCHAROID:
-			case TEXTOID:
 				LM_DBG("use DB_STRING result type");
 				RES_TYPES(_r)[col] = DB_STRING;
 			break;
 
+			case TEXTOID:
 			case BYTEAOID:
 				LM_DBG("use DB_BLOB result type");
 				RES_TYPES(_r)[col] = DB_BLOB;