Ignore:
Timestamp:
Sep 9, 2008, 3:16:32 AM (16 years ago)
Author:
rvelices
Message:
  • fix issue when picture_url_style = file (sql query like)
  • sql call SET NAMES "xxx" (if required) in upgrade.php, upgrade_feed.php and after 65-database.php
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upgrade_feed.php

    r2323 r2512  
    4343// +-----------------------------------------------------------------------+
    4444
    45 mysql_connect($cfgHote, $cfgUser, $cfgPassword)
    46 or die("Could not connect to database server");
    47 mysql_select_db($cfgBase)
    48 or die("Could not connect to database");
     45mysql_connect($cfgHote, $cfgUser, $cfgPassword) or die("Could not connect to database server");
     46mysql_select_db($cfgBase) or die("Could not connect to database");
     47if ( version_compare(mysql_get_server_info(), '4.1.0', '>=')
     48    and defined('DB_CHARSET') and DB_CHARSET!='' )
     49{
     50  pwg_query('SET NAMES "'.DB_CHARSET.'"');
     51}
     52
    4953
    5054// +-----------------------------------------------------------------------+
Note: See TracChangeset for help on using the changeset viewer.