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/plugouts/GreenstoneSQLPlugout.pm

    r32586 r32589  
    105105      'type' => "string",
    106106      'deft' => "",
    107       'reqd' => "yes"}, # pwd required?
     107      'reqd' => "no"}, # pwd required? NO.
    108108    { 'name' => "db_host",
    109109      'desc' => "{GreenstoneSQLPlug.db_host}",
    110110      'type' => "string",
    111111      'deft' => "127.0.0.1",
    112       'reqd' => "yes"}
     112      'reqd' => "yes"},
     113    { 'name' => "db_port",
     114      'desc' => "{GreenstoneSQLPlug.db_port}",
     115      'type' => "string", # NOTE: make this int? No default for port, since it's not a required connection param
     116      'reqd' => "no"}
    113117    ];
    114118
     
    178182    'db_client_pwd' => $self->{'db_client_pwd'},
    179183    'db_host' => $self->{'db_host'},
     184    'db_port' => $self->{'db_port'}, # undef by default, can leave as is
    180185    'autocommit' => $autocommit
    181186                   })
Note: See TracChangeset for help on using the changeset viewer.