Ignore:
Timestamp:
2018-11-08T21:25:36+13:00 (5 years ago)
Author:
ak19
Message:
  1. SQL db password is not compulsory. 2. Forgot to add the non-compulsory db_port option to the GS SQL Plugs
File:
1 edited

Legend:

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

    r32586 r32589  
    178178    'type' => "string",
    179179    'deft' => "",
    180     'reqd' => "yes"}, # pwd required?
     180    'reqd' => "no"}, # pwd required? NO.
    181181      { 'name' => "db_host",
    182182    'desc' => "{GreenstoneSQLPlug.db_host}",
     
    184184    'deft' => "127.0.0.1",
    185185    'reqd' => "yes"},
     186      { 'name' => "db_port",
     187    'desc' => "{GreenstoneSQLPlug.db_port}",
     188    'type' => "string", # NOTE: make this int? No default for port, since it's not a required connection param
     189    'reqd' => "no"}
    186190    ];
    187191
     
    261265    'db_client_pwd' => $self->{'db_client_pwd'},
    262266    'db_host' => $self->{'db_host'},
     267    'db_port' => $self->{'db_port'}, # undef by default, can leave as is
    263268    'autocommit' => $autocommit
    264269                   })
Note: See TracChangeset for help on using the changeset viewer.