aboutsummaryrefslogtreecommitdiff
path: root/src/build.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/build.c')
-rw-r--r--src/build.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/build.c b/src/build.c
index 50289c6a1..5b4bbe499 100644
--- a/src/build.c
+++ b/src/build.c
@@ -1243,6 +1243,14 @@ void sqlite3ColumnPropertiesFromName(Table *pTab, Column *pCol){
}
#endif
+/*
+** Add the RETURNING clause to the parser currently underway.
+*/
+void sqlite3AddReturning(Parse *pParse, ExprList *pList){
+ sqlite3ParserAddCleanup(pParse,
+ (void(*)(sqlite3*,void*))sqlite3ExprListDelete, pList);
+ pParse->pReturning = pList;
+}
/*
** Add a new column to the table currently being constructed.