1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Fix harmless compiler warnings in the ALTER TABLE logic. Rephrase an

error message to use active voice.

FossilOrigin-Name: a7dae59a7e7b187fa2e9457bbb4b01cfe3d48bbdf59c3f8f7b4156bcde3bda98
This commit is contained in:
drh
2018-08-23 19:32:04 +00:00
parent d3130dab92
commit 79a5ee93c7
4 changed files with 13 additions and 14 deletions

View File

@@ -813,7 +813,7 @@ static int isRealTable(Parse *pParse, Table *pTab){
#endif
if( zType ){
sqlite3ErrorMsg(
pParse, "columns of %s %s may not be renamed", zType, pTab->zName
pParse, "cannot rename columns of %s \"%s\"", zType, pTab->zName
);
return 1;
}
@@ -1073,8 +1073,8 @@ static void renameColumnParseError(
sqlite3_value *pObject,
Parse *pParse
){
const char *zT = sqlite3_value_text(pType);
const char *zN = sqlite3_value_text(pObject);
const char *zT = (const char*)sqlite3_value_text(pType);
const char *zN = (const char*)sqlite3_value_text(pObject);
char *zErr;
zErr = sqlite3_mprintf("error processing %s %s: %s", zT, zN, pParse->zErrMsg);