aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2004-05-26 16:54:42 +0000
committerdrh <drh@noemail.net>2004-05-26 16:54:42 +0000
commitf9b596ebc05ff3365bed6b8dafb02d251c652889 (patch)
treedb56a7ae7dafee19f1d8fe3f947333c0914a7e0e /src/main.c
parentb77f5dadbf3e34d9724c836c6871955b59694123 (diff)
downloadsqlite-f9b596ebc05ff3365bed6b8dafb02d251c652889.tar.gz
sqlite-f9b596ebc05ff3365bed6b8dafb02d251c652889.zip
Remove dataType and includeTypes flags from function definitions. Added new
P3_FUNCDEF type for P3 arguments on opcodes. Fixes to several user functions. 28 tests fail now. (CVS 1464) FossilOrigin-Name: 36e031625995b2f7baf7654d771ca8fb764a0085
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c20
1 files changed, 3 insertions, 17 deletions
diff --git a/src/main.c b/src/main.c
index 8a4f5ce99..e9c87aab2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -14,7 +14,7 @@
** other files are for internal use by SQLite and should not be
** accessed by users of the library.
**
-** $Id: main.c,v 1.193 2004/05/26 10:11:06 danielk1977 Exp $
+** $Id: main.c,v 1.194 2004/05/26 16:54:43 drh Exp $
*/
#include "sqliteInt.h"
#include "os.h"
@@ -412,7 +412,7 @@ static int binaryCollatingFunc(
/*
** Return the ROWID of the most recent insert
*/
-int sqlite3_last_insert_rowid(sqlite *db){
+long long int sqlite3_last_insert_rowid(sqlite *db){
return db->lastRowid;
}
@@ -696,20 +696,6 @@ int sqlite3_create_function16(
}
/*
-** Change the datatype for all functions with a given name. See the
-** header comment for the prototype of this function in sqlite.h for
-** additional information.
-*/
-int sqlite3_function_type(sqlite *db, const char *zName, int dataType){
- FuncDef *p = (FuncDef*)sqlite3HashFind(&db->aFunc, zName, strlen(zName));
- while( p ){
- p->dataType = dataType;
- p = p->pNext;
- }
- return SQLITE_OK;
-}
-
-/*
** Register a trace function. The pArg from the previously registered trace
** is returned.
**
@@ -1028,7 +1014,7 @@ static int openDatabase(
db->aDb = db->aDbStatic;
db->enc = def_enc;
/* db->flags |= SQLITE_ShortColNames; */
- sqlite3HashInit(&db->aFunc, SQLITE_HASH_STRING, 1);
+ sqlite3HashInit(&db->aFunc, SQLITE_HASH_STRING, 0);
sqlite3HashInit(&db->aCollSeq, SQLITE_HASH_STRING, 0);
for(i=0; i<db->nDb; i++){
sqlite3HashInit(&db->aDb[i].tblHash, SQLITE_HASH_STRING, 0);