aboutsummaryrefslogtreecommitdiff
path: root/src/func.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2005-02-15 20:47:57 +0000
committerdrh <drh@noemail.net>2005-02-15 20:47:57 +0000
commitd0e4a6c11d941784f2a2fa7a90d01a90e7ee5696 (patch)
tree1092a831bbd7f02001ebf1dea958c856a9b42fc8 /src/func.c
parent057cd3a0aa0d59a0b90fa282d384ab80ddcc081e (diff)
downloadsqlite-d0e4a6c11d941784f2a2fa7a90d01a90e7ee5696.tar.gz
sqlite-d0e4a6c11d941784f2a2fa7a90d01a90e7ee5696.zip
Split the logic for the ALTER TABLE command off into a separate source
code file. (CVS 2342) FossilOrigin-Name: 90d6573c2631fac92b9e572e9e21698ae2480c9d
Diffstat (limited to 'src/func.c')
-rw-r--r--src/func.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/func.c b/src/func.c
index f5e633c57..afc3de039 100644
--- a/src/func.c
+++ b/src/func.c
@@ -16,7 +16,7 @@
** sqliteRegisterBuildinFunctions() found at the bottom of the file.
** All other code has file scope.
**
-** $Id: func.c,v 1.94 2005/02/09 01:40:25 danielk1977 Exp $
+** $Id: func.c,v 1.95 2005/02/15 20:47:57 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -541,13 +541,13 @@ static void versionFunc(
** the CREATE TABLE or CREATE INDEX statement is replaced with the second
** argument and the result returned. Examples:
**
-** sqlite_alter_table('CREATE TABLE abc(a, b, c)', 'def')
+** sqlite_rename_table('CREATE TABLE abc(a, b, c)', 'def')
** -> 'CREATE TABLE def(a, b, c)'
**
-** sqlite_alter_table('CREATE INDEX i ON abc(a)', 'def')
+** sqlite_rename_table('CREATE INDEX i ON abc(a)', 'def')
** -> 'CREATE INDEX i ON def(a, b, c)'
*/
-static void altertableFunc(
+static void renameTableFunc(
sqlite3_context *context,
int argc,
sqlite3_value **argv
@@ -594,10 +594,10 @@ static void altertableFunc(
** ALTER TABLE command. The first argument is the text of a CREATE TRIGGER
** statement. The second is a table name. The table name in the CREATE
** TRIGGER statement is replaced with the second argument and the result
-** returned. This is analagous to altertableFunc() above, except for CREATE
+** returned. This is analagous to renameTableFunc() above, except for CREATE
** TRIGGER, not CREATE INDEX and CREATE TABLE.
*/
-static void altertriggerFunc(
+static void renameTriggerFunc(
sqlite3_context *context,
int argc,
sqlite3_value **argv
@@ -1123,9 +1123,9 @@ void sqlite3RegisterBuiltinFunctions(sqlite3 *db){
{ "changes", 0, 1, SQLITE_UTF8, 0, changes },
{ "total_changes", 0, 1, SQLITE_UTF8, 0, total_changes },
#ifndef SQLITE_OMIT_ALTERTABLE
- { "sqlite_alter_table", 2, 0, SQLITE_UTF8, 0, altertableFunc},
+ { "sqlite_rename_table", 2, 0, SQLITE_UTF8, 0, renameTableFunc},
#ifndef SQLITE_OMIT_TRIGGER
- { "sqlite_alter_trigger", 2, 0, SQLITE_UTF8, 0, altertriggerFunc},
+ { "sqlite_rename_trigger",2, 0, SQLITE_UTF8, 0, renameTriggerFunc},
#endif
#endif
#ifdef SQLITE_SOUNDEX