Procházet zdrojové kódy

- 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 před 17 roky
rodič
revize
1eda31e3f7
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 CHAROID:
 			case VARCHAROID:
 			case VARCHAROID:
 			case BPCHAROID:
 			case BPCHAROID:
-			case TEXTOID:
 				LM_DBG("use DB_STRING result type");
 				LM_DBG("use DB_STRING result type");
 				RES_TYPES(_r)[col] = DB_STRING;
 				RES_TYPES(_r)[col] = DB_STRING;
 			break;
 			break;
 
 
+			case TEXTOID:
 			case BYTEAOID:
 			case BYTEAOID:
 				LM_DBG("use DB_BLOB result type");
 				LM_DBG("use DB_BLOB result type");
 				RES_TYPES(_r)[col] = DB_BLOB;
 				RES_TYPES(_r)[col] = DB_BLOB;