[OpenSER-Devel] SF.net SVN: openser: [3637] trunk

Henning Westerholt henning.westerholt at 1und1.de
Wed Feb 6 12:59:01 UTC 2008


Revision: 3637
          http://openser.svn.sourceforge.net/openser/?rev=3637&view=rev
Author:   henningw
Date:     2008-02-06 04:59:01 -0800 (Wed, 06 Feb 2008)

Log Message:
-----------
further improvements of the database API:
- unify postgres, unixodbc and mysql code, error and debug messages
- move the column allocating logic into the DB core API
- change the all three modules to use this function
- change postgres module to use the memory memory management methods of the core
- add a flag to the db_val_t type that indicates if the (string) memory must be freed
- don't try to free the static NULL values in db_free_row
- change core row freeing method to evaluate the memory status flag
- change the postgres module to set this flag
- add some memsets to the mysql and unixodbc module for more safety and also
  ensure the correct working of the free flag
- fix database TYPE flags in mysql module, they will be removed for 5.2 and are
  also obselete since 3.X times
- change column names allocation logic in postgres to match the unixodbc and mysql
  behaviour, don't copy the names
- some smaller documentation improvements and cleanups
- tested only with testsuite so far

works that still needs to be done:
- modify the db_berkeley, dbtext and flatstore module to use the core API
- modify the postgres, db_berkeley driver that they don't copy the values
  returned from the driver

Modified Paths:
--------------
    trunk/db/db.h
    trunk/db/db_res.c
    trunk/db/db_res.h
    trunk/db/db_row.c
    trunk/db/db_row.h
    trunk/db/db_val.h
    trunk/modules/mysql/db_mod.c
    trunk/modules/mysql/db_mod.h
    trunk/modules/mysql/dbase.c
    trunk/modules/mysql/dbase.h
    trunk/modules/mysql/my_con.c
    trunk/modules/mysql/my_con.h
    trunk/modules/mysql/res.c
    trunk/modules/mysql/row.c
    trunk/modules/mysql/row.h
    trunk/modules/mysql/val.c
    trunk/modules/mysql/val.h
    trunk/modules/postgres/db_mod.c
    trunk/modules/postgres/db_res.c
    trunk/modules/postgres/db_res.h
    trunk/modules/postgres/db_val.c
    trunk/modules/postgres/dbase.c
    trunk/modules/postgres/dbase.h
    trunk/modules/postgres/pg_con.c
    trunk/modules/postgres/pg_type.h
    trunk/modules/unixodbc/db_mod.c
    trunk/modules/unixodbc/db_mod.h
    trunk/modules/unixodbc/dbase.h
    trunk/modules/unixodbc/list.c
    trunk/modules/unixodbc/list.h
    trunk/modules/unixodbc/my_con.c
    trunk/modules/unixodbc/my_con.h
    trunk/modules/unixodbc/res.c
    trunk/modules/unixodbc/row.c
    trunk/modules/unixodbc/row.h
    trunk/modules/unixodbc/val.c
    trunk/modules/unixodbc/val.h


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