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:
@@ -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));
|
||||
|
||||
|
Reference in New Issue
Block a user