Add missing format argument to ecpg_log() call
authorPeter Eisentraut <[email protected]>
Thu, 8 Sep 2011 19:09:08 +0000 (22:09 +0300)
committerPeter Eisentraut <[email protected]>
Thu, 8 Sep 2011 19:15:53 +0000 (22:15 +0300)
src/interfaces/ecpg/ecpglib/execute.c

index 1e3d4182bb93b5f66c67a7c0eb8a52a3c6398c77..446605ef6a381b6d47cee516b86ef303ae9f7103 100644 (file)
@@ -1357,7 +1357,7 @@ ECPGexecute(struct statement * stmt)
                        if (PQresultStatus(results) == PGRES_COMMAND_OK)
                            ECPGlog("ECPGexecute line %d: Got PGRES_COMMAND_OK after PGRES_COPY_OUT\n", stmt->lineno);
                        else
-                           ECPGlog("ECPGexecute line %d: Got error after PGRES_COPY_OUT: %s", PQresultErrorMessage(results));
+                           ECPGlog("ECPGexecute line %d: Got error after PGRES_COPY_OUT: %s", stmt->lineno, PQresultErrorMessage(results));
                    }
                    break;
                }