[SR-Dev] git:janakj/postgres: - db_postgres and db_unixodbc handles TEXT colums now as DB_BLOB type similar

Jan Janak jan at iptel.org
Wed Feb 18 01:26:20 CET 2009


Module: sip-router
Branch: janakj/postgres
Commit: 1eda31e3f7bcc3dba1db981773402b477922be68
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1eda31e3f7bcc3dba1db981773402b477922be68

Author: Henning Westerholt <henning.westerholt at 1und1.de>
Committer: Henning Westerholt <henning.westerholt at 1und1.de>
Date:   Mon Apr 21 09:18:34 2008 +0000

- 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

---

 modules/db_postgres/km_db_res.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/db_postgres/km_db_res.c b/modules/db_postgres/km_db_res.c
index 5ba3eed..a72f17f 100644
--- a/modules/db_postgres/km_db_res.c
+++ b/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;




More information about the sr-dev mailing list