Re: error copy_statement_with_parameters from select

Mike Aubury <[email protected]> Tue, 25 Jan 2022 15:31:05 +0000
Newsgroups gmane.comp.lang.4gl.aubit.general
Message-ID <CAGAq4WG3-Y5un9E9aMR73D7bsZdLt=7Ab-EBnMcZKcV7Mi8eAw@mail.gmail.com>
If you're using Postgres - you shouldnt be using ODBC.

Whats your A4GL_SQLTYPE set to ?

$ aubit-config A4GL_SQLTYPE

should give what Aubit4GL thinks you are using...

On Mon, 24 Jan 2022 at 10:24, Odo Benda <[email protected]> wrote:

> Hello!
>
> I'm struggling with simple select test case that produces an
> copy_statement_with_parameters error.
>
> Err:Program ./test_case_benu2 stopped at 'test_case_benu2.4gl', line
> number 12.
> Error status number -1.
> Query buffer allocate error in copy_statement_with_parameters.
>
> 4gl function call stack :
>      MAIN
>
>
> The code producing the error is:
>
> DATABASE kfa
>
>
> MAIN
>
>     DEFINE res RECORD LIKE benutzer.*
>
>     DEFINE u CHAR(8)
>
>     LET  u = "kfa"
>
>     SELECT * INTO res.*
>       FROM benutzer
>     WHERE username LIKE u
>
>     DISPLAY "code ", res.usercode
>     DISPLAY "DONE!"
> END MAIN
>
>
> The installation is unixodbc / postgres on centos 8.5
>
>
> best regards, Odo
>
>
>
> _______________________________________________
> Aubit4gl-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss
>

_______________________________________________
Aubit4gl-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss