Fixed a "char *" usage to use "const char *" as it should have
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -106,7 +106,7 @@ private:
|
|||||||
bool getRec(UWORD fetchType);
|
bool getRec(UWORD fetchType);
|
||||||
bool execDelete(const char *pSqlStmt);
|
bool execDelete(const char *pSqlStmt);
|
||||||
bool execUpdate(const char *pSqlStmt);
|
bool execUpdate(const char *pSqlStmt);
|
||||||
bool query(int queryType, bool forUpdate, bool distinct, char *pSqlStmt = 0);
|
bool query(int queryType, bool forUpdate, bool distinct, const char *pSqlStmt = 0);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// Pointer to the database object this table belongs to
|
// Pointer to the database object this table belongs to
|
||||||
@@ -160,7 +160,7 @@ public:
|
|||||||
bool DeleteWhere(const char *pWhereClause);
|
bool DeleteWhere(const char *pWhereClause);
|
||||||
bool DeleteMatching(void);
|
bool DeleteMatching(void);
|
||||||
virtual bool Query(bool forUpdate = FALSE, bool distinct = FALSE);
|
virtual bool Query(bool forUpdate = FALSE, bool distinct = FALSE);
|
||||||
bool QueryBySqlStmt(char *pSqlStmt);
|
bool QueryBySqlStmt(const char *pSqlStmt);
|
||||||
bool QueryMatching(bool forUpdate = FALSE, bool distinct = FALSE);
|
bool QueryMatching(bool forUpdate = FALSE, bool distinct = FALSE);
|
||||||
bool QueryOnKeyFields(bool forUpdate = FALSE, bool distinct = FALSE);
|
bool QueryOnKeyFields(bool forUpdate = FALSE, bool distinct = FALSE);
|
||||||
bool GetNext(void) { return(getRec(SQL_FETCH_NEXT)); }
|
bool GetNext(void) { return(getRec(SQL_FETCH_NEXT)); }
|
||||||
|
@@ -536,7 +536,7 @@ bool wxDbTable::execUpdate(const char *pSqlStmt)
|
|||||||
|
|
||||||
|
|
||||||
/********** wxDbTable::query() **********/
|
/********** wxDbTable::query() **********/
|
||||||
bool wxDbTable::query(int queryType, bool forUpdate, bool distinct, char *pSqlStmt)
|
bool wxDbTable::query(int queryType, bool forUpdate, bool distinct, const char *pSqlStmt)
|
||||||
{
|
{
|
||||||
char sqlStmt[DB_MAX_STATEMENT_LEN];
|
char sqlStmt[DB_MAX_STATEMENT_LEN];
|
||||||
|
|
||||||
@@ -666,7 +666,7 @@ bool wxDbTable::Query(bool forUpdate, bool distinct)
|
|||||||
|
|
||||||
|
|
||||||
/********** wxDbTable::QueryBySqlStmt() **********/
|
/********** wxDbTable::QueryBySqlStmt() **********/
|
||||||
bool wxDbTable::QueryBySqlStmt(char *pSqlStmt)
|
bool wxDbTable::QueryBySqlStmt(const char *pSqlStmt)
|
||||||
{
|
{
|
||||||
pDb->WriteSqlLog(pSqlStmt);
|
pDb->WriteSqlLog(pSqlStmt);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user