Lazaruspascalを使用してpostgresqlデータベースに接続しようとしています。コンパイルの終わりに向かってこのエラーが発生します(F9)。
mainform.pas(112,35)エラー:「作成」の呼び出しに指定されたパラメーターの数が間違っています
これが私のコードです:
dbConn:= TSQLConnection.Create(nil);
dbConn.HostName := '<IP goes here>';
dbConn.DatabaseName:= 'dbMydb';
dbconn.UserName:='me';
dbConn.Password:='pas';
dbConn.Open;
//Bind the Transaction AND Query components to the DB connection
dbQuery_Menu := TSQLQuery.Create; //This is the line with the error
dbQuery_Menu.Database := dbConn;
dbQuery_Menu.Transaction := dbTrans ;
私はこれを理解しようとして本当に疲れています...助けてください...
上記のコードはここから適応されました。