File size: 13,287 Bytes
7510827
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
[
  {
    "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"
  }
]