mirror of
https://github.com/postgres/postgres.git
synced 2025-08-06 18:42:54 +03:00
*** empty log message ***
This commit is contained in:
@@ -5,9 +5,19 @@ int my_fun (void)
|
||||
EXEC SQL BEGIN DECLARE SECTION;
|
||||
int sql_index = 0;
|
||||
EXEC SQL END DECLARE SECTION;
|
||||
FILE *dbgs;
|
||||
|
||||
if ((dbgs = fopen("/tmp/log", "w")) != NULL)
|
||||
ECPGdebug(1, dbgs);
|
||||
|
||||
EXEC SQL WHENEVER SQLERROR GOTO Error;
|
||||
|
||||
EXEC SQL CONNECT TO 'mm';
|
||||
EXEC SQL SELECT MIN(index) INTO :sql_index FROM tab;
|
||||
EXEC SQL DISCONNECT;
|
||||
|
||||
if (dbgs != NULL)
|
||||
fclose(dbgs);
|
||||
|
||||
return (sql_index);
|
||||
|
||||
|
@@ -13,7 +13,6 @@ int main (void)
|
||||
EXEC SQL END DECLARE SECTION;
|
||||
FILE *dbgs;
|
||||
|
||||
|
||||
if ((dbgs = fopen("log", "w")) != NULL)
|
||||
ECPGdebug(1, dbgs);
|
||||
|
||||
|
Reference in New Issue
Block a user