Ignore:
Timestamp:
2018-10-31T19:48:18+13:00 (5 years ago)
Author:
ak19
Message:

Removing db_encoding as parameters to GreenstoneSQLPlugout and GreenstoneSQLPlugin: as doc.xml is always in utf8, the same contents stored in the MySQL db should be too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/GreenstoneSQLPlugin.pm

    r32556 r32559  
    146146    'deft' => "127.0.0.1",
    147147    'reqd' => "yes"},
    148       { 'name' => "db_encoding",
    149     'desc' => "{GreenstoneSQLPlug.db_encoding}",
    150     'type' => "string",
    151     'deft' => "utf8",
    152     'reqd' => "yes"}
    153148    ];
    154149
     
    373368#    print STDERR "@@@@ user: " . $self->{'db_client_user'} . "\n";
    374369#    print STDERR "@@@@ db_host: " . $self->{'db_host'} . "\n";
    375 #    print STDERR "@@@@ db_enc: " . $self->{'db_encoding'} . "\n";
    376370#    print STDERR "@@@@ db_driver: " . $self->{'db_driver'} . "\n";
    377371    ####################
    378    
     372
     373    # create gssql object.
     374    # collection name will be used for naming tables (site name will be used for naming database)
    379375    my $gs_sql = new gssql({
    380     'collection_name' => $ENV{'GSDLCOLLECTION'},   
    381     'db_encoding' => $self->{'db_encoding'}
    382                }
    383     );
     376    'collection_name' => $ENV{'GSDLCOLLECTION'}
     377               });
    384378
    385379    # try connecting to the mysql db, if that fails it will die
Note: See TracChangeset for help on using the changeset viewer.