diff options
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/prepare.c')
-rw-r--r-- | src/interfaces/ecpg/ecpglib/prepare.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/ecpglib/prepare.c b/src/interfaces/ecpg/ecpglib/prepare.c index c5a554e8e28..1bddf215afe 100644 --- a/src/interfaces/ecpg/ecpglib/prepare.c +++ b/src/interfaces/ecpg/ecpglib/prepare.c @@ -19,7 +19,7 @@ typedef struct char stmtID[STMTID_SIZE]; char *ecpgQuery; long execs; /* # of executions */ - char *connection; /* connection for the statement */ + const char *connection; /* connection for the statement */ } stmtCacheEntry; static int nextStmtID = 1; @@ -456,7 +456,7 @@ AddStmtToCache(int lineno, /* line # of statement */ entry = &stmtCacheEntries[entNo]; entry->lineno = lineno; entry->ecpgQuery = ecpg_strdup(ecpgQuery, lineno); - entry->connection = (char *) connection; + entry->connection = connection; entry->execs = 0; memcpy(entry->stmtID, stmtID, sizeof(entry->stmtID)); |