[Kamailio-Devel] SF.net SVN: openser:[5199] trunk/modules/db_postgres

Henning Westerholt henning.westerholt at 1und1.de
Thu Nov 13 17:35:55 CET 2008


Revision: 5199
          http://openser.svn.sourceforge.net/openser/?rev=5199&view=rev
Author:   henningw
Date:     2008-11-13 16:35:55 +0000 (Thu, 13 Nov 2008)

Log Message:
-----------
- fix postgres NULL value behaviour: as in postgres a NULL value is
  represented from an empty string (just as a empty value), we need
  to check it with PQgetisnull
- as further processing steps assume that we use the mysql behaviour,
  were a NULL value is represented from a NULL string, we need to
  simulate this here
- better would be to get rid of this row_buf completely, and to use
  just some function parameter to signalize NULLs to the later steps
- synchronize db_postgres_val2str behaviour to the mysql and unixodbc
  modules, fail also in the NULL case when the buffer is to small
- reported from Matteo Piazza, matteo dot piazza at trentinonetwork dot it

Modified Paths:
--------------
    trunk/modules/db_postgres/res.c
    trunk/modules/db_postgres/val.c


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Devel mailing list