sqlite / injectable_functions /alter_injectable_functions.json
AryaWu's picture
Upload folder using huggingface_hub
7510827 verified
[
{
"function_name": "isAlterableTable",
"function_signature": "static int isAlterableTable(Parse *pParse, Table *pTab)",
"test_filename": "tests_alter_isAlterableTable.c"
},
{
"function_name": "renameTestSchema",
"function_signature": "static void renameTestSchema(\n Parse *pParse, /* Parse context */\n const char *zDb, /* Name of db to verify schema of */\n int bTemp, /* True if this is the temp db */\n const char *zWhen, /* \"when\" part of error message */\n int bNoDQS /* Do not allow DQS in the schema */\n)",
"test_filename": "tests_alter_renameTestSchema.c"
},
{
"function_name": "renameFixQuotes",
"function_signature": "static void renameFixQuotes(Parse *pParse, const char *zDb, int bTemp)",
"test_filename": "tests_alter_renameFixQuotes.c"
},
{
"function_name": "sqlite3AlterRenameTable",
"function_signature": "void sqlite3AlterRenameTable(\n Parse *pParse, /* Parser context. */\n SrcList *pSrc, /* The table to rename. */\n Token *pName /* The new table name. */\n)",
"test_filename": "tests_alter_sqlite3AlterRenameTable.c"
},
{
"function_name": "sqlite3ErrorIfNotEmpty",
"function_signature": "static void sqlite3ErrorIfNotEmpty(\n Parse *pParse, /* Parsing context */\n const char *zDb, /* Schema holding the table */\n const char *zTab, /* Table to check for empty */\n const char *zErr /* Error message text */\n)",
"test_filename": "tests_alter_sqlite3ErrorIfNotEmpty.c"
},
{
"function_name": "sqlite3AlterFinishAddColumn",
"function_signature": "void sqlite3AlterFinishAddColumn(Parse *pParse, Token *pColDef)",
"test_filename": "tests_alter_sqlite3AlterFinishAddColumn.c"
},
{
"function_name": "sqlite3AlterBeginAddColumn",
"function_signature": "void sqlite3AlterBeginAddColumn(Parse *pParse, SrcList *pSrc)",
"test_filename": "tests_alter_sqlite3AlterBeginAddColumn.c"
},
{
"function_name": "isRealTable",
"function_signature": "static int isRealTable(Parse *pParse, Table *pTab, int iOp)",
"test_filename": "tests_alter_isRealTable.c"
},
{
"function_name": "sqlite3AlterRenameColumn",
"function_signature": "void sqlite3AlterRenameColumn(\n Parse *pParse, /* Parsing context */\n SrcList *pSrc, /* Table being altered. pSrc->nSrc==1 */\n Token *pOld, /* Name of column being changed */\n Token *pNew /* New column name */\n)",
"test_filename": "tests_alter_sqlite3AlterRenameColumn.c"
},
{
"function_name": "renameTokenCheckAll",
"function_signature": "static void renameTokenCheckAll(Parse *pParse, const void *pPtr)",
"test_filename": "tests_alter_renameTokenCheckAll.c"
},
{
"function_name": "sqlite3RenameTokenRemap",
"function_signature": "void sqlite3RenameTokenRemap(Parse *pParse, const void *pTo, const void *pFrom)",
"test_filename": "tests_alter_sqlite3RenameTokenRemap.c"
},
{
"function_name": "renameWalkWith",
"function_signature": "static void renameWalkWith(Walker *pWalker, Select *pSelect)",
"test_filename": "tests_alter_renameWalkWith.c"
},
{
"function_name": "unmapColumnIdlistNames",
"function_signature": "static void unmapColumnIdlistNames(\n Parse *pParse,\n const IdList *pIdList\n)",
"test_filename": "tests_alter_unmapColumnIdlistNames.c"
},
{
"function_name": "renameUnmapSelectCb",
"function_signature": "static int renameUnmapSelectCb(Walker *pWalker, Select *p)",
"test_filename": "tests_alter_renameUnmapSelectCb.c"
},
{
"function_name": "sqlite3RenameExprUnmap",
"function_signature": "void sqlite3RenameExprUnmap(Parse *pParse, Expr *pExpr)",
"test_filename": "tests_alter_sqlite3RenameExprUnmap.c"
},
{
"function_name": "sqlite3RenameExprlistUnmap",
"function_signature": "void sqlite3RenameExprlistUnmap(Parse *pParse, ExprList *pEList)",
"test_filename": "tests_alter_sqlite3RenameExprlistUnmap.c"
},
{
"function_name": "renameColumnExprCb",
"function_signature": "static int renameColumnExprCb(Walker *pWalker, Expr *pExpr)",
"test_filename": "tests_alter_renameColumnExprCb.c"
},
{
"function_name": "errorMPrintf",
"function_signature": "static void errorMPrintf(sqlite3_context *pCtx, const char *zFmt, ...)",
"test_filename": "tests_alter_errorMPrintf.c"
},
{
"function_name": "renameColumnParseError",
"function_signature": "static void renameColumnParseError(\n sqlite3_context *pCtx,\n const char *zWhen,\n sqlite3_value *pType,\n sqlite3_value *pObject,\n Parse *pParse\n)",
"test_filename": "tests_alter_renameColumnParseError.c"
},
{
"function_name": "renameColumnElistNames",
"function_signature": "static void renameColumnElistNames(\n Parse *pParse,\n RenameCtx *pCtx,\n const ExprList *pEList,\n const char *zOld\n)",
"test_filename": "tests_alter_renameColumnElistNames.c"
},
{
"function_name": "renameColumnIdlistNames",
"function_signature": "static void renameColumnIdlistNames(\n Parse *pParse,\n RenameCtx *pCtx,\n const IdList *pIdList,\n const char *zOld\n)",
"test_filename": "tests_alter_renameColumnIdlistNames.c"
},
{
"function_name": "renameParseSql",
"function_signature": "static int renameParseSql(\n Parse *p, /* Memory to use for Parse object */\n const char *zDb, /* Name of schema SQL belongs to */\n sqlite3 *db, /* Database handle */\n const char *zSql, /* SQL to parse */\n int bTemp /* True if SQL is from temp schema */\n)",
"test_filename": "tests_alter_renameParseSql.c"
},
{
"function_name": "renameEditSql",
"function_signature": "static int renameEditSql(\n sqlite3_context *pCtx, /* Return result here */\n RenameCtx *pRename, /* Rename context */\n const char *zSql, /* SQL statement to edit */\n const char *zNew, /* New token text */\n int bQuote /* True to always quote token */\n)",
"test_filename": "tests_alter_renameEditSql.c"
},
{
"function_name": "renameSetENames",
"function_signature": "static void renameSetENames(ExprList *pEList, int val)",
"test_filename": "tests_alter_renameSetENames.c"
},
{
"function_name": "renameResolveTrigger",
"function_signature": "static int renameResolveTrigger(Parse *pParse)",
"test_filename": "tests_alter_renameResolveTrigger.c"
},
{
"function_name": "renameWalkTrigger",
"function_signature": "static void renameWalkTrigger(Walker *pWalker, Trigger *pTrigger)",
"test_filename": "tests_alter_renameWalkTrigger.c"
},
{
"function_name": "renameParseCleanup",
"function_signature": "static void renameParseCleanup(Parse *pParse)",
"test_filename": "tests_alter_renameParseCleanup.c"
},
{
"function_name": "renameColumnFunc",
"function_signature": "static void renameColumnFunc(\n sqlite3_context *context,\n int NotUsed,\n sqlite3_value **argv\n)",
"test_filename": "tests_alter_renameColumnFunc.c"
},
{
"function_name": "renameTableExprCb",
"function_signature": "static int renameTableExprCb(Walker *pWalker, Expr *pExpr)",
"test_filename": "tests_alter_renameTableExprCb.c"
},
{
"function_name": "renameTableSelectCb",
"function_signature": "static int renameTableSelectCb(Walker *pWalker, Select *pSelect)",
"test_filename": "tests_alter_renameTableSelectCb.c"
},
{
"function_name": "renameTableFunc",
"function_signature": "static void renameTableFunc(\n sqlite3_context *context,\n int NotUsed,\n sqlite3_value **argv\n)",
"test_filename": "tests_alter_renameTableFunc.c"
},
{
"function_name": "renameQuotefixFunc",
"function_signature": "static void renameQuotefixFunc(\n sqlite3_context *context,\n int NotUsed,\n sqlite3_value **argv\n)",
"test_filename": "tests_alter_renameQuotefixFunc.c"
},
{
"function_name": "renameTableTest",
"function_signature": "static void renameTableTest(\n sqlite3_context *context,\n int NotUsed,\n sqlite3_value **argv\n)",
"test_filename": "tests_alter_renameTableTest.c"
},
{
"function_name": "getConstraintToken",
"function_signature": "static int getConstraintToken(const u8 *z, int *piToken)",
"test_filename": "tests_alter_getConstraintToken.c"
},
{
"function_name": "dropColumnFunc",
"function_signature": "static void dropColumnFunc(\n sqlite3_context *context,\n int NotUsed,\n sqlite3_value **argv\n)",
"test_filename": "tests_alter_dropColumnFunc.c"
},
{
"function_name": "sqlite3AlterDropColumn",
"function_signature": "void sqlite3AlterDropColumn(Parse *pParse, SrcList *pSrc, const Token *pName)",
"test_filename": "tests_alter_sqlite3AlterDropColumn.c"
},
{
"function_name": "getWhitespace",
"function_signature": "static int getWhitespace(const u8 *z)",
"test_filename": "tests_alter_getWhitespace.c"
},
{
"function_name": "getConstraint",
"function_signature": "static int getConstraint(const u8 *z)",
"test_filename": "tests_alter_getConstraint.c"
},
{
"function_name": "quotedCompare",
"function_signature": "static int quotedCompare(\n sqlite3_context *ctx, /* Function context on which to report errors */\n int t, /* Token type */\n const u8 *zQuote, /* Possibly quoted text. Not zero-terminated. */\n int nQuote, /* Length of zQuote in bytes */\n const u8 *zCmp, /* Zero-terminated, unquoted name to compare against */\n int *pRes /* OUT: Set to 0 if equal, non-zero if unequal */\n)",
"test_filename": "tests_alter_quotedCompare.c"
},
{
"function_name": "skipCreateTable",
"function_signature": "static int skipCreateTable(sqlite3_context *ctx, const u8 *zSql, int *piOff)",
"test_filename": "tests_alter_skipCreateTable.c"
},
{
"function_name": "dropConstraintFunc",
"function_signature": "static void dropConstraintFunc(\n sqlite3_context *ctx,\n int NotUsed,\n sqlite3_value **argv\n)",
"test_filename": "tests_alter_dropConstraintFunc.c"
},
{
"function_name": "addConstraintFunc",
"function_signature": "static void addConstraintFunc(\n sqlite3_context *ctx,\n int NotUsed,\n sqlite3_value **argv\n)",
"test_filename": "tests_alter_addConstraintFunc.c"
},
{
"function_name": "alterFindCol",
"function_signature": "static int alterFindCol(Parse *pParse, Table *pTab, Token *pCol, int *piCol)",
"test_filename": "tests_alter_alterFindCol.c"
},
{
"function_name": "sqlite3AlterDropConstraint",
"function_signature": "void sqlite3AlterDropConstraint(\n Parse *pParse, /* Parsing context */\n SrcList *pSrc, /* The table being altered */\n Token *pCons, /* Name of the constraint to drop */\n Token *pCol /* Name of the column from which to remove the NOT NULL */\n)",
"test_filename": "tests_alter_sqlite3AlterDropConstraint.c"
},
{
"function_name": "failConstraintFunc",
"function_signature": "static void failConstraintFunc(\n sqlite3_context *ctx,\n int NotUsed,\n sqlite3_value **argv\n)",
"test_filename": "tests_alter_failConstraintFunc.c"
},
{
"function_name": "alterRtrimConstraint",
"function_signature": "static int alterRtrimConstraint(\n sqlite3 *db, /* used to record OOM error */\n const char *pCons, /* Buffer containing constraint */\n int nCons /* Size of pCons in bytes */\n)",
"test_filename": "tests_alter_alterRtrimConstraint.c"
},
{
"function_name": "sqlite3AlterSetNotNull",
"function_signature": "void sqlite3AlterSetNotNull(\n Parse *pParse, /* Parsing context */\n SrcList *pSrc, /* Name of the table being altered */\n Token *pCol, /* Name of the column to add a NOT NULL constraint to */\n Token *pFirst /* The NOT token of the NOT NULL constraint text */\n)",
"test_filename": "tests_alter_sqlite3AlterSetNotNull.c"
},
{
"function_name": "findConstraintFunc",
"function_signature": "static void findConstraintFunc(\n sqlite3_context *ctx,\n int NotUsed,\n sqlite3_value **argv\n)",
"test_filename": "tests_alter_findConstraintFunc.c"
},
{
"function_name": "sqlite3AlterAddConstraint",
"function_signature": "void sqlite3AlterAddConstraint(\n Parse *pParse, /* Parse context */\n SrcList *pSrc, /* Table to add constraint to */\n Token *pFirst, /* First token of new constraint */\n Token *pName, /* Name of new constraint. NULL if name omitted. */\n const char *pExpr, /* Text of CHECK expression */\n int nExpr /* Size of pExpr in bytes */\n)",
"test_filename": "tests_alter_sqlite3AlterAddConstraint.c"
},
{
"function_name": "sqlite3AlterFunctions",
"function_signature": "void sqlite3AlterFunctions(void)",
"test_filename": "tests_alter_sqlite3AlterFunctions.c"
}
]