CoolFace
Modelpublic

AryaWu/sqlite

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
select_injectable_functions.json362 linesDownload Raw Back to injectable_functions
1[2  {3    "function_name": "clearSelect",4    "function_signature": "static void clearSelect(sqlite3 *db, Select *p, int bFree)",5    "test_filename": "tests_select_clearSelect.c"6  },7  {8    "function_name": "sqlite3JoinType",9    "function_signature": "int sqlite3JoinType(Parse *pParse, Token *pA, Token *pB, Token *pC)",10    "test_filename": "tests_select_sqlite3JoinType.c"11  },12  {13    "function_name": "sqlite3ColumnIndex",14    "function_signature": "int sqlite3ColumnIndex(Table *pTab, const char *zCol)",15    "test_filename": "tests_select_sqlite3ColumnIndex.c"16  },17  {18    "function_name": "sqlite3SrcItemColumnUsed",19    "function_signature": "void sqlite3SrcItemColumnUsed(SrcItem *pItem, int iCol)",20    "test_filename": "tests_select_sqlite3SrcItemColumnUsed.c"21  },22  {23    "function_name": "tableAndColumnIndex",24    "function_signature": "static int tableAndColumnIndex(\n  SrcList *pSrc,       /* Array of tables to search */\n  int iStart,          /* First member of pSrc->a[] to check */\n  int iEnd,            /* Last member of pSrc->a[] to check */\n  const char *zCol,    /* Name of the column we are looking for */\n  int *piTab,          /* Write index of pSrc->a[] here */\n  int *piCol,          /* Write index of pSrc->a[*piTab].pSTab->aCol[] here */\n  int bIgnoreHidden    /* Ignore hidden columns */\n)",25    "test_filename": "tests_select_tableAndColumnIndex.c"26  },27  {28    "function_name": "sqlite3SetJoinExpr",29    "function_signature": "void sqlite3SetJoinExpr(Expr *p, int iTable, u32 joinFlag)",30    "test_filename": "tests_select_sqlite3SetJoinExpr.c"31  },32  {33    "function_name": "unsetJoinExpr",34    "function_signature": "static void unsetJoinExpr(Expr *p, int iTable, int nullable)",35    "test_filename": "tests_select_unsetJoinExpr.c"36  },37  {38    "function_name": "sqlite3ProcessJoin",39    "function_signature": "static int sqlite3ProcessJoin(Parse *pParse, Select *p)",40    "test_filename": "tests_select_sqlite3ProcessJoin.c"41  },42  {43    "function_name": "innerLoopLoadRow",44    "function_signature": "static void innerLoopLoadRow(\n  Parse *pParse,             /* Statement under construction */\n  Select *pSelect,           /* The query being coded */\n  RowLoadInfo *pInfo         /* Info needed to complete the row load */\n)",45    "test_filename": "tests_select_innerLoopLoadRow.c"46  },47  {48    "function_name": "makeSorterRecord",49    "function_signature": "static int makeSorterRecord(\n  Parse *pParse,\n  SortCtx *pSort,\n  Select *pSelect,\n  int regBase,\n  int nBase\n)",50    "test_filename": "tests_select_makeSorterRecord.c"51  },52  {53    "function_name": "pushOntoSorter",54    "function_signature": "static void pushOntoSorter(\n  Parse *pParse,         /* Parser context */\n  SortCtx *pSort,        /* Information about the ORDER BY clause */\n  Select *pSelect,       /* The whole SELECT statement */\n  int regData,           /* First register holding data to be sorted */\n  int regOrigData,       /* First register holding data before packing */\n  int nData,             /* Number of elements in the regData data array */\n  int nPrefixReg         /* No. of reg prior to regData available for use */\n)",55    "test_filename": "tests_select_pushOntoSorter.c"56  },57  {58    "function_name": "codeOffset",59    "function_signature": "static void codeOffset(\n  Vdbe *v,          /* Generate code into this VM */\n  int iOffset,      /* Register holding the offset counter */\n  int iContinue     /* Jump here to skip the current record */\n)",60    "test_filename": "tests_select_codeOffset.c"61  },62  {63    "function_name": "codeDistinct",64    "function_signature": "static int codeDistinct(\n  Parse *pParse,     /* Parsing and code generating context */\n  int eTnctType,     /* WHERE_DISTINCT_* value */\n  int iTab,          /* A sorting index used to test for distinctness */\n  int addrRepeat,    /* Jump to here if not distinct */\n  ExprList *pEList,  /* Expression for each element */\n  int regElem        /* First element */\n)",65    "test_filename": "tests_select_codeDistinct.c"66  },67  {68    "function_name": "fixDistinctOpenEph",69    "function_signature": "static void fixDistinctOpenEph(\n  Parse *pParse,     /* Parsing and code generating context */\n  int eTnctType,     /* WHERE_DISTINCT_* value */\n  int iVal,          /* Value returned by codeDistinct() */\n  int iOpenEphAddr   /* Address of OP_OpenEphemeral instruction for iTab */\n)",70    "test_filename": "tests_select_fixDistinctOpenEph.c"71  },72  {73    "function_name": "selectExprDefer",74    "function_signature": "static void selectExprDefer(\n  Parse *pParse,                  /* Leave any error here */\n  SortCtx *pSort,                 /* Sorter context */\n  ExprList *pEList,               /* Expressions destined for sorter */\n  ExprList **ppExtra              /* Expressions to append to sorter record */\n)",75    "test_filename": "tests_select_selectExprDefer.c"76  },77  {78    "function_name": "selectInnerLoop",79    "function_signature": "static void selectInnerLoop(\n  Parse *pParse,          /* The parser context */\n  Select *p,              /* The complete select statement being coded */\n  int srcTab,             /* Pull data from this table if non-negative */\n  SortCtx *pSort,         /* If not NULL, info on how to process ORDER BY */\n  DistinctCtx *pDistinct, /* If not NULL, info on how to process DISTINCT */\n  SelectDest *pDest,      /* How to dispose of the results */\n  int iContinue,          /* Jump here to continue with next row */\n  int iBreak              /* Jump here to break out of the inner loop */\n)",80    "test_filename": "tests_select_selectInnerLoop.c"81  },82  {83    "function_name": "generateSortTail",84    "function_signature": "static void generateSortTail(\n  Parse *pParse,    /* Parsing context */\n  Select *p,        /* The SELECT statement */\n  SortCtx *pSort,   /* Information on the ORDER BY clause */\n  int nColumn,      /* Number of columns of data */\n  SelectDest *pDest /* Write the sorted results here */\n)",85    "test_filename": "tests_select_generateSortTail.c"86  },87  {88    "function_name": "generateColumnTypes",89    "function_signature": "static void generateColumnTypes(\n  Parse *pParse,      /* Parser context */\n  SrcList *pTabList,  /* List of tables */\n  ExprList *pEList    /* Expressions defining the result set */\n)",90    "test_filename": "tests_select_generateColumnTypes.c"91  },92  {93    "function_name": "sqlite3GenerateColumnNames",94    "function_signature": "void sqlite3GenerateColumnNames(\n  Parse *pParse,      /* Parser context */\n  Select *pSelect     /* Generate column names for this SELECT statement */\n)",95    "test_filename": "tests_select_sqlite3GenerateColumnNames.c"96  },97  {98    "function_name": "sqlite3ColumnsFromExprList",99    "function_signature": "int sqlite3ColumnsFromExprList(\n  Parse *pParse,          /* Parsing context */\n  ExprList *pEList,       /* Expr list from which to derive column names */\n  i16 *pnCol,             /* Write the number of columns here */\n  Column **paCol          /* Write the new column list here */\n)",100    "test_filename": "tests_select_sqlite3ColumnsFromExprList.c"101  },102  {103    "function_name": "sqlite3SubqueryColumnTypes",104    "function_signature": "void sqlite3SubqueryColumnTypes(\n  Parse *pParse,      /* Parsing contexts */\n  Table *pTab,        /* Add column type information to this table */\n  Select *pSelect,    /* SELECT used to determine types and collations */\n  char aff            /* Default affinity. */\n)",105    "test_filename": "tests_select_sqlite3SubqueryColumnTypes.c"106  },107  {108    "function_name": "computeLimitRegisters",109    "function_signature": "static void computeLimitRegisters(Parse *pParse, Select *p, int iBreak)",110    "test_filename": "tests_select_computeLimitRegisters.c"111  },112  {113    "function_name": "generateWithRecursiveQuery",114    "function_signature": "static void generateWithRecursiveQuery(\n  Parse *pParse,        /* Parsing context */\n  Select *p,            /* The recursive SELECT to be coded */\n  SelectDest *pDest     /* What to do with query results */\n)",115    "test_filename": "tests_select_generateWithRecursiveQuery.c"116  },117  {118    "function_name": "multiSelectValues",119    "function_signature": "static int multiSelectValues(\n  Parse *pParse,        /* Parsing context */\n  Select *p,            /* The right-most of SELECTs to be coded */\n  SelectDest *pDest     /* What to do with query results */\n)",120    "test_filename": "tests_select_multiSelectValues.c"121  },122  {123    "function_name": "multiSelect",124    "function_signature": "static int multiSelect(\n  Parse *pParse,        /* Parsing context */\n  Select *p,            /* The right-most of SELECTs to be coded */\n  SelectDest *pDest     /* What to do with query results */\n)",125    "test_filename": "tests_select_multiSelect.c"126  },127  {128    "function_name": "generateOutputSubroutine",129    "function_signature": "static int generateOutputSubroutine(\n  Parse *pParse,          /* Parsing context */\n  Select *p,              /* The SELECT statement */\n  SelectDest *pIn,        /* Coroutine supplying data */\n  SelectDest *pDest,      /* Where to send the data */\n  int regReturn,          /* The return address register */\n  int regPrev,            /* Previous result register.  No uniqueness if 0 */\n  KeyInfo *pKeyInfo,      /* For comparing with previous entry */\n  int iBreak              /* Jump here if we hit the LIMIT */\n)",130    "test_filename": "tests_select_generateOutputSubroutine.c"131  },132  {133    "function_name": "multiSelectOrderBy",134    "function_signature": "static int multiSelectOrderBy(\n  Parse *pParse,        /* Parsing context */\n  Select *p,            /* The right-most of SELECTs to be coded */\n  SelectDest *pDest     /* What to do with query results */\n)",135    "test_filename": "tests_select_multiSelectOrderBy.c"136  },137  {138    "function_name": "substExprList",139    "function_signature": "static void substExprList(\n  SubstContext *pSubst, /* Description of the substitution */\n  ExprList *pList       /* List to scan and in which to make substitutes */\n)",140    "test_filename": "tests_select_substExprList.c"141  },142  {143    "function_name": "substSelect",144    "function_signature": "static void substSelect(\n  SubstContext *pSubst, /* Description of the substitution */\n  Select *p,            /* SELECT statement in which to make substitutions */\n  int doPrior           /* Do substitutes on p->pPrior too */\n)",145    "test_filename": "tests_select_substSelect.c"146  },147  {148    "function_name": "recomputeColumnsUsed",149    "function_signature": "static void recomputeColumnsUsed(\n  Select *pSelect,                 /* The complete SELECT statement */\n  SrcItem *pSrcItem                /* Which FROM clause item to recompute */\n)",150    "test_filename": "tests_select_recomputeColumnsUsed.c"151  },152  {153    "function_name": "srclistRenumberCursors",154    "function_signature": "static void srclistRenumberCursors(\n  Parse *pParse,                  /* Parse context */\n  int *aCsrMap,                   /* Array to store cursor mappings in */\n  SrcList *pSrc,                  /* FROM clause to renumber */\n  int iExcept                     /* FROM clause item to skip */\n)",155    "test_filename": "tests_select_srclistRenumberCursors.c"156  },157  {158    "function_name": "renumberCursorsCb",159    "function_signature": "static int renumberCursorsCb(Walker *pWalker, Expr *pExpr)",160    "test_filename": "tests_select_renumberCursorsCb.c"161  },162  {163    "function_name": "renumberCursors",164    "function_signature": "static void renumberCursors(\n  Parse *pParse,                  /* Parse context */\n  Select *p,                      /* Select to renumber cursors within */\n  int iExcept,                    /* FROM clause item to skip */\n  int *aCsrMap                    /* Working space */\n)",165    "test_filename": "tests_select_renumberCursors.c"166  },167  {168    "function_name": "compoundHasDifferentAffinities",169    "function_signature": "static int compoundHasDifferentAffinities(Select *p)",170    "test_filename": "tests_select_compoundHasDifferentAffinities.c"171  },172  {173    "function_name": "flattenSubquery",174    "function_signature": "static int flattenSubquery(\n  Parse *pParse,       /* Parsing context */\n  Select *p,           /* The parent or outer SELECT statement */\n  int iFrom,           /* Index in p->pSrc->a[] of the inner subquery */\n  int isAgg            /* True if outer SELECT uses aggregate functions */\n)",175    "test_filename": "tests_select_flattenSubquery.c"176  },177  {178    "function_name": "constInsert",179    "function_signature": "static void constInsert(\n  WhereConst *pConst,  /* The WhereConst into which we are inserting */\n  Expr *pColumn,       /* The COLUMN part of the constraint */\n  Expr *pValue,        /* The VALUE part of the constraint */\n  Expr *pExpr          /* Overall expression: COLUMN=VALUE or VALUE=COLUMN */\n)",180    "test_filename": "tests_select_constInsert.c"181  },182  {183    "function_name": "findConstInWhere",184    "function_signature": "static void findConstInWhere(WhereConst *pConst, Expr *pExpr)",185    "test_filename": "tests_select_findConstInWhere.c"186  },187  {188    "function_name": "propagateConstantExprRewriteOne",189    "function_signature": "static int propagateConstantExprRewriteOne(\n  WhereConst *pConst,\n  Expr *pExpr,\n  int bIgnoreAffBlob\n)",190    "test_filename": "tests_select_propagateConstantExprRewriteOne.c"191  },192  {193    "function_name": "propagateConstantExprRewrite",194    "function_signature": "static int propagateConstantExprRewrite(Walker *pWalker, Expr *pExpr)",195    "test_filename": "tests_select_propagateConstantExprRewrite.c"196  },197  {198    "function_name": "propagateConstants",199    "function_signature": "static int propagateConstants(\n  Parse *pParse,   /* The parsing context */\n  Select *p        /* The query in which to propagate constants */\n)",200    "test_filename": "tests_select_propagateConstants.c"201  },202  {203    "function_name": "pushDownWhereTerms",204    "function_signature": "static int pushDownWhereTerms(\n  Parse *pParse,        /* Parse context (for malloc() and error reporting) */\n  Select *pSubq,        /* The subquery whose WHERE clause is to be augmented */\n  Expr *pWhere,         /* The WHERE clause of the outer query */\n  SrcList *pSrcList,    /* The complete from clause of the outer query */\n  int iSrc              /* Which FROM clause term to try to push into  */\n)",205    "test_filename": "tests_select_pushDownWhereTerms.c"206  },207  {208    "function_name": "disableUnusedSubqueryResultColumns",209    "function_signature": "static int disableUnusedSubqueryResultColumns(SrcItem *pItem)",210    "test_filename": "tests_select_disableUnusedSubqueryResultColumns.c"211  },212  {213    "function_name": "minMaxQuery",214    "function_signature": "static u8 minMaxQuery(sqlite3 *db, Expr *pFunc, ExprList **ppMinMax)",215    "test_filename": "tests_select_minMaxQuery.c"216  },217  {218    "function_name": "sqlite3IndexedByLookup",219    "function_signature": "int sqlite3IndexedByLookup(Parse *pParse, SrcItem *pFrom)",220    "test_filename": "tests_select_sqlite3IndexedByLookup.c"221  },222  {223    "function_name": "convertCompoundSelectToSubquery",224    "function_signature": "static int convertCompoundSelectToSubquery(Walker *pWalker, Select *p)",225    "test_filename": "tests_select_convertCompoundSelectToSubquery.c"226  },227  {228    "function_name": "resolveFromTermToCte",229    "function_signature": "static int resolveFromTermToCte(\n  Parse *pParse,                  /* The parsing context */\n  Walker *pWalker,                /* Current tree walker */\n  SrcItem *pFrom                  /* The FROM clause term to check */\n)",230    "test_filename": "tests_select_resolveFromTermToCte.c"231  },232  {233    "function_name": "sqlite3SelectPopWith",234    "function_signature": "void sqlite3SelectPopWith(Walker *pWalker, Select *p)",235    "test_filename": "tests_select_sqlite3SelectPopWith.c"236  },237  {238    "function_name": "sqlite3ExpandSubquery",239    "function_signature": "int sqlite3ExpandSubquery(Parse *pParse, SrcItem *pFrom)",240    "test_filename": "tests_select_sqlite3ExpandSubquery.c"241  },242  {243    "function_name": "inAnyUsingClause",244    "function_signature": "static int inAnyUsingClause(\n  const char *zName, /* Name we are looking for */\n  SrcItem *pBase,    /* The base SrcItem.  Looking at pBase[1] and following */\n  int N              /* How many SrcItems to check */\n)",245    "test_filename": "tests_select_inAnyUsingClause.c"246  },247  {248    "function_name": "selectExpander",249    "function_signature": "static int selectExpander(Walker *pWalker, Select *p)",250    "test_filename": "tests_select_selectExpander.c"251  },252  {253    "function_name": "sqlite3SelectExpand",254    "function_signature": "static void sqlite3SelectExpand(Parse *pParse, Select *pSelect)",255    "test_filename": "tests_select_sqlite3SelectExpand.c"256  },257  {258    "function_name": "selectAddSubqueryTypeInfo",259    "function_signature": "static void selectAddSubqueryTypeInfo(Walker *pWalker, Select *p)",260    "test_filename": "tests_select_selectAddSubqueryTypeInfo.c"261  },262  {263    "function_name": "sqlite3SelectAddTypeInfo",264    "function_signature": "static void sqlite3SelectAddTypeInfo(Parse *pParse, Select *pSelect)",265    "test_filename": "tests_select_sqlite3SelectAddTypeInfo.c"266  },267  {268    "function_name": "sqlite3SelectPrep",269    "function_signature": "void sqlite3SelectPrep(\n  Parse *pParse,         /* The parser context */\n  Select *p,             /* The SELECT statement being coded. */\n  NameContext *pOuterNC  /* Name context for container */\n)",270    "test_filename": "tests_select_sqlite3SelectPrep.c"271  },272  {273    "function_name": "printAggInfo",274    "function_signature": "static void printAggInfo(AggInfo *pAggInfo)",275    "test_filename": "tests_select_printAggInfo.c"276  },277  {278    "function_name": "analyzeAggFuncArgs",279    "function_signature": "static void analyzeAggFuncArgs(\n  AggInfo *pAggInfo,\n  NameContext *pNC\n)",280    "test_filename": "tests_select_analyzeAggFuncArgs.c"281  },282  {283    "function_name": "optimizeAggregateUseOfIndexedExpr",284    "function_signature": "static void optimizeAggregateUseOfIndexedExpr(\n  Parse *pParse,          /* Parsing context */\n  Select *pSelect,        /* The SELECT statement being processed */\n  AggInfo *pAggInfo,      /* The aggregate info */\n  NameContext *pNC        /* Name context used to resolve agg-func args */\n)",285    "test_filename": "tests_select_optimizeAggregateUseOfIndexedExpr.c"286  },287  {288    "function_name": "aggregateIdxEprRefToColCallback",289    "function_signature": "static int aggregateIdxEprRefToColCallback(Walker *pWalker, Expr *pExpr)",290    "test_filename": "tests_select_aggregateIdxEprRefToColCallback.c"291  },292  {293    "function_name": "resetAccumulator",294    "function_signature": "static void resetAccumulator(Parse *pParse, AggInfo *pAggInfo)",295    "test_filename": "tests_select_resetAccumulator.c"296  },297  {298    "function_name": "finalizeAggFunctions",299    "function_signature": "static void finalizeAggFunctions(Parse *pParse, AggInfo *pAggInfo)",300    "test_filename": "tests_select_finalizeAggFunctions.c"301  },302  {303    "function_name": "updateAccumulator",304    "function_signature": "static void updateAccumulator(\n  Parse *pParse,\n  int regAcc,\n  AggInfo *pAggInfo,\n  int eDistinctType\n)",305    "test_filename": "tests_select_updateAccumulator.c"306  },307  {308    "function_name": "explainSimpleCount",309    "function_signature": "static void explainSimpleCount(\n  Parse *pParse,                  /* Parse context */\n  Table *pTab,                    /* Table being queried */\n  Index *pIdx                     /* Index used to optimize scan, or NULL */\n)",310    "test_filename": "tests_select_explainSimpleCount.c"311  },312  {313    "function_name": "havingToWhereExprCb",314    "function_signature": "static int havingToWhereExprCb(Walker *pWalker, Expr *pExpr)",315    "test_filename": "tests_select_havingToWhereExprCb.c"316  },317  {318    "function_name": "havingToWhere",319    "function_signature": "static void havingToWhere(Parse *pParse, Select *p)",320    "test_filename": "tests_select_havingToWhere.c"321  },322  {323    "function_name": "countOfViewOptimization",324    "function_signature": "static int countOfViewOptimization(Parse *pParse, Select *p)",325    "test_filename": "tests_select_countOfViewOptimization.c"326  },327  {328    "function_name": "sameSrcAlias",329    "function_signature": "static int sameSrcAlias(SrcItem *p0, SrcList *pSrc)",330    "test_filename": "tests_select_sameSrcAlias.c"331  },332  {333    "function_name": "fromClauseTermCanBeCoroutine",334    "function_signature": "static int fromClauseTermCanBeCoroutine(\n  Parse *pParse,          /* Parsing context */\n  SrcList *pTabList,      /* FROM clause */\n  int i,                  /* Which term of the FROM clause holds the subquery */\n  int selFlags            /* Flags on the SELECT statement */\n)",335    "test_filename": "tests_select_fromClauseTermCanBeCoroutine.c"336  },337  {338    "function_name": "existsToJoin",339    "function_signature": "static SQLITE_NOINLINE void existsToJoin(\n  Parse *pParse,  /* Parsing context */\n  Select *p,      /* The SELECT statement being optimized */\n  Expr *pWhere    /* part of the WHERE clause currently being examined */\n)",340    "test_filename": "tests_select_existsToJoin.c"341  },342  {343    "function_name": "selectCheckOnClausesExpr",344    "function_signature": "static int selectCheckOnClausesExpr(Walker *pWalker, Expr *pExpr)",345    "test_filename": "tests_select_selectCheckOnClausesExpr.c"346  },347  {348    "function_name": "selectCheckOnClausesSelect",349    "function_signature": "static int selectCheckOnClausesSelect(Walker *pWalker, Select *pSelect)",350    "test_filename": "tests_select_selectCheckOnClausesSelect.c"351  },352  {353    "function_name": "selectCheckOnClauses",354    "function_signature": "static void selectCheckOnClauses(Parse *pParse, Select *pSelect)",355    "test_filename": "tests_select_selectCheckOnClauses.c"356  },357  {358    "function_name": "sqlite3Select",359    "function_signature": "int sqlite3Select(\n  Parse *pParse,         /* The parser context */\n  Select *p,             /* The SELECT statement being coded. */\n  SelectDest *pDest      /* What to do with the query results */\n)",360    "test_filename": "tests_select_sqlite3Select.c"361  }362]