Explorar o código

- 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 %!s(int64=17) %!d(string=hai) anos
pai
achega
1eda31e3f7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;