HuubGitHub / dwscript

Automatically exported from code.google.com/p/dwscript
1 stars 0 forks source link

TdwsUIBDataBase.Create wrong check for param count #409

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It looks like there is copy-paste error in the TdwsUIBDataBase.Create method:

   if Length(parameters)>0 then
      pwd:=parameters[2]
   else pwd:='masterkey';

should probably be

   if Length(parameters) > 2 then
      pwd:=parameters[2]
   else pwd:='masterkey';

ie it should check that there is more than 2 parameters.

Original issue reported on code.google.com by ain.val...@gmail.com on 31 May 2013 at 3:01

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r2146.

Original comment by zar...@gmail.com on 31 May 2013 at 3:04