Use correct connection name variable in ecpglib.
authorMichael Meskes <[email protected]>
Fri, 15 Mar 2019 21:35:24 +0000 (22:35 +0100)
committerMichael Meskes <[email protected]>
Sat, 16 Mar 2019 03:01:06 +0000 (04:01 +0100)
Fixed-by: Kuroda-san <[email protected]>
src/interfaces/ecpg/ecpglib/prepare.c

index e04312c413e72b91d634dc8aef1328c25baf9873..0ef85c9de18ad8cd0da145ab853909b40f638eee 100644 (file)
@@ -298,7 +298,7 @@ ECPGdeallocate(int lineno, int c, const char *connection_name, const char *name)
    }
 
    con = ecpg_get_connection(real_connection_name);
-   if (!ecpg_init(con, connection_name, lineno))
+   if (!ecpg_init(con, real_connection_name, lineno))
        return false;
 
    this = ecpg_find_prepared_statement(name, con, &prev);