1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-09 14:21:03 +03:00

Relax the restriction on using bytes 0x80 through 0xbf as the first

character of an identifier.  Enhancements to ALTER TABLE tests for
tables with strange names or stange column names. (CVS 4008)

FossilOrigin-Name: 262a3e6339b31f269f8f07e43d295b90827e2779
This commit is contained in:
drh
2007-05-15 14:34:32 +00:00
parent 76cb812d25
commit 9a087a99e5
6 changed files with 52 additions and 28 deletions

View File

@@ -15,7 +15,7 @@
** individual tokens and sends those tokens one-by-one over to the
** parser for analysis.
**
** $Id: tokenize.c,v 1.128 2007/05/15 09:00:15 drh Exp $
** $Id: tokenize.c,v 1.129 2007/05/15 14:34:32 drh Exp $
*/
#include "sqliteInt.h"
#include "os.h"
@@ -365,7 +365,7 @@ static int getToken(const unsigned char *z, int *tokenType){
}
#endif
default: {
if( !IdChar(*z) || (*z & 0xc0)==0x80 ){
if( !IdChar(*z) ){
break;
}
for(i=1; IdChar(z[i]); i++){}