1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-21 02:52:47 +03:00

ecpg: Clean up some const usage

This commit is contained in:
Peter Eisentraut
2012-03-02 20:51:29 +02:00
parent 8efb0bc57e
commit d41f510c80
3 changed files with 13 additions and 13 deletions

View File

@@ -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));