Changeset 1769 for branches/release-33/lib/MT/ObjectDriver/Driver/DBD/Pg.pm
- Timestamp:
- 04/04/08 06:08:04 (20 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/release-33/lib/MT/ObjectDriver/Driver/DBD/Pg.pm
r1174 r1769 107 107 local $@; 108 108 if (!$dbh->do("SET NAMES '" . $c . "'")) { 109 # 'set names' command isn't working for this verison of mysql,109 # 'set names' command isn't working for this verison of PostgreSQL, 110 110 # assign SQLSetNames to 0 to prevent further errors. 111 111 $cfg->SQLSetNames(0, 1); 112 $cfg->save_config;113 112 return 0; 114 113 } else { … … 117 116 # 'SET NAMES' command, so it's safe to SET NAMES in the future. 118 117 $cfg->SQLSetNames(1, 1); 119 $cfg->save_config;120 118 } 121 119 }
