Thread: WinZEOS components and CREATE USER

WinZEOS components and CREATE USER

From
"Alex Bolenok"
Date:
Hello,

I use WinZEOS Delphi components. I want to create a user using ExecSQL
method of TZPgSqlQuery component. When I call this method, the exception is
raised: 'CREATE USER: may not be called in a transaction block'. The
component seems to begin an implicit BEGIN / END block when ExecSQL method
is called.
So the question is:

1. Is there any way to avoid calling of BEGIN / END in these components, or
2. Is there any way to create a user inside a transaction block? Direct
writes to pg_shadow don't work too, I have tried.

Thanks,

Alex Bolenok.