[Devel] CVS commitlog: sip-server/modules/postgres db_val.c dbase.c dbase.h

Klaus Darilion klaus.mailinglists at pernau.at
Wed Jan 17 13:57:53 CET 2007


Bogdan-Andrei Iancu wrote:
> Hi Klaus,
> 
> according to PG docs, PQescapeStringConn has as older version the 
> PQescapeString function . See:
>    http://www.postgresql.org/docs/7.4/static/libpq-exec.html  Chapter 
> 27.3.4
> 
> do you think we can do some autodetection at compile time? actually does 
> it pay the effort? how old are the postgres versions that do not support 
> PQescapeString...

I had to make an apt-get upgrade on my Debian sarge to get the proper 
postgres libraries.

Maybe we can implment autodetection and use the deprecated functions too 
- but this way it works for me and I do not have time to implement more.

regards
klaus


> 
> regards,
> bogdan
> 
> Klaus Darilion wrote:
> 
>> User: klaus_darilion
>> Date: 2007/01/17 04:43:55 PST
>>
>>  OpenSER CVS - Commit Details
>>
>>  Modified files:        (Branch: rel_1_0_0)
>>    modules/postgres     db_val.c dbase.c dbase.h  Commit Log:
>>  - escape values before contructing the SQL statement
>>    NOTE: It uses the function PQescapeStringConn. Make sure your postgres
>>    library supports this function before update. E.g. on Debian Sarge 
>> you need
>>    at least postgres-devel and libpq3 version 7.4.7-6sarge3 (version
>>    7.4.7-6sarge1 does not work).
>>  
>>  Revision     Changes    Path
>>  1.3.2.1      +21 -13    sip-server/modules/postgres/db_val.c
>>   [ 
>> http://openser.cvs.sourceforge.net/openser/sip-server/modules/postgres/db_val.c?r1=1.3&r2=1.3.2.1 
>> ]
>>  1.4.2.1      +12 -12    sip-server/modules/postgres/dbase.c
>>   [ 
>> http://openser.cvs.sourceforge.net/openser/sip-server/modules/postgres/dbase.c?r1=1.4&r2=1.4.2.1 
>> ]
>>  1.1.1.1.4.1  +2 -2      sip-server/modules/postgres/dbase.h
>>   [ 
>> http://openser.cvs.sourceforge.net/openser/sip-server/modules/postgres/dbase.h?r1=1.1.1.1&r2=1.1.1.1.4.1 
>> ]
>>
>> _______________________________________________
>> Devel mailing list
>> Devel at openser.org
>> http://openser.org/cgi-bin/mailman/listinfo/devel
>>
>>  
>>
> 


-- 
Klaus Darilion
nic.at




More information about the Devel mailing list