Branch: Tag:

2006-09-18

2006-09-18 16:18:34 by Martin Stjernholm <mast@lysator.liu.se>

Added charset handling in database sessions and the SQL tags.

Note: This requires a fairly cvs fresh pike (7.4 or later).

Rev: server/base_server/configuration.pike:1.618
Rev: server/base_server/module.pike:1.225
Rev: server/base_server/prototypes.pike:1.182
Rev: server/base_server/roxenloader.pike:1.379
Rev: server/etc/modules/DBManager.pmod:1.68
Rev: server/modules/database/sqltag.pike:1.106

5:   // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.617 2006/09/15 12:06:42 wellhard Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.618 2006/09/18 16:18:34 mast Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>
3831: Inside #if ROXEN_COMPAT < 2.2
     constant sql_cache_get = DBManager.sql_cache_get;    - Sql.Sql sql_connect(string db) + Sql.Sql sql_connect(string db, void|string charset)   {    if (sql_urls[db]) -  return sql_cache_get(sql_urls[db]); +  return sql_cache_get(sql_urls[db], 0, charset);    else -  return sql_cache_get(db); +  return sql_cache_get(db, 0, charset);   }      // END SQL