Update of /cvsroot/monetdb/sql/src/common
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv21370/src/common
Modified Files:
Tag: SQL_2-18
sql_keyword.mx
Log Message:
fixed line mode, with multiple statement. Solves the slow SBatching test.
Index: sql_keyword.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/common/sql_keyword.mx,v
retrieving revision 1.9
retrieving revision 1.9.4.1
diff -u -d -r1.9 -r1.9.4.1
--- sql_keyword.mx 3 Jan 2007 12:39:44 -0000 1.9
+++ sql_keyword.mx 3 Jul 2007 15:31:50 -0000 1.9.4.1
@@ -22,10 +22,13 @@
#include "sql_string.h"
#include "sql_keyword.h"
-int keywords_init_done = 0;
-keyword *keywords[HASH_SIZE];
+#define HASH_SIZE 32768
+#define HASH_MASK (HASH_SIZE-1)
-int
+static int keywords_init_done = 0;
+static keyword *keywords[HASH_SIZE];
+
+static int
keyword_key(char *k, int *l)
{
char *s = k;
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins