We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feb270d commit c98a6d7Copy full SHA for c98a6d7
doc/src/sgml/ecpg.sgml
@@ -371,14 +371,14 @@ EXEC SQL PREPARE <replaceable>statement-name</replaceable> FROM :<replaceable>dy
371
372
EXEC SQL BEGIN DECLARE SECTION;
373
char dbname[128];
374
-char *dym_sql = "SELECT current_database()";
+char *dyn_sql = "SELECT current_database()";
375
EXEC SQL END DECLARE SECTION;
376
377
int main(){
378
EXEC SQL CONNECT TO postgres AS con1;
379
EXEC SQL CONNECT TO testdb AS con2;
380
EXEC SQL AT con1 DECLARE stmt STATEMENT;
381
- EXEC SQL PREPARE stmt FROM :dym_sql;
+ EXEC SQL PREPARE stmt FROM :dyn_sql;
382
EXEC SQL EXECUTE stmt INTO :dbname;
383
printf("%s\n", dbname);
384
0 commit comments