- Timestamp:
- 2018-10-31T19:48:18+13:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugins/GreenstoneSQLPlugin.pm
r32556 r32559 146 146 'deft' => "127.0.0.1", 147 147 'reqd' => "yes"}, 148 { 'name' => "db_encoding",149 'desc' => "{GreenstoneSQLPlug.db_encoding}",150 'type' => "string",151 'deft' => "utf8",152 'reqd' => "yes"}153 148 ]; 154 149 … … 373 368 # print STDERR "@@@@ user: " . $self->{'db_client_user'} . "\n"; 374 369 # print STDERR "@@@@ db_host: " . $self->{'db_host'} . "\n"; 375 # print STDERR "@@@@ db_enc: " . $self->{'db_encoding'} . "\n";376 370 # print STDERR "@@@@ db_driver: " . $self->{'db_driver'} . "\n"; 377 371 #################### 378 372 373 # create gssql object. 374 # collection name will be used for naming tables (site name will be used for naming database) 379 375 my $gs_sql = new gssql({ 380 'collection_name' => $ENV{'GSDLCOLLECTION'}, 381 'db_encoding' => $self->{'db_encoding'} 382 } 383 ); 376 'collection_name' => $ENV{'GSDLCOLLECTION'} 377 }); 384 378 385 379 # try connecting to the mysql db, if that fails it will die
Note:
See TracChangeset
for help on using the changeset viewer.