"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "hsqldb/src/org/hsqldb/Scanner.java" between
hsqldb-2.7.1.zip and hsqldb-2.7.2.zip

About: HSQLDB (HyperSQL DataBase) is a SQL relational database engine written in Java. It supports nearly full ANSI-92 SQL (BNF format) and full core SQL:2008.

Scanner.java  (hsqldb-2.7.1):Scanner.java  (hsqldb-2.7.2)
/* Copyright (c) 2001-2022, The HSQL Development Group /* Copyright (c) 2001-2023, The HSQL Development Group
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* *
* Redistributions of source code must retain the above copyright notice, this * Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer. * list of conditions and the following disclaimer.
* *
* Redistributions in binary form must reproduce the above copyright notice, * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation * this list of conditions and the following disclaimer in the documentation
skipping to change at line 63 skipping to change at line 63
import org.hsqldb.types.NumberType; import org.hsqldb.types.NumberType;
import org.hsqldb.types.TimeData; import org.hsqldb.types.TimeData;
import org.hsqldb.types.TimestampData; import org.hsqldb.types.TimestampData;
import org.hsqldb.types.Type; import org.hsqldb.types.Type;
import org.hsqldb.types.Types; import org.hsqldb.types.Types;
/** /**
* Scans for SQL tokens. * Scans for SQL tokens.
* *
* @author Fred Toussi (fredt@users dot sourceforge.net) * @author Fred Toussi (fredt@users dot sourceforge.net)
* @version 2.6.1 * @version 2.7.2
* @since 1.9.0 * @since 1.9.0
*/ */
public class Scanner { public class Scanner {
/* /*
<delimiter token> ::= <delimiter token> ::=
<character string literal> <character string literal>
| <date string> | <date string>
| <time string> | <time string>
| <timestamp string> | <timestamp string>
skipping to change at line 1773 skipping to change at line 1773
* identifier chain must not have catalog identifier * identifier chain must not have catalog identifier
* character set specification to be included in the token.dataT ype * character set specification to be included in the token.dataT ype
*/ */
int startPosition = currentPosition; int startPosition = currentPosition;
currentPosition++; currentPosition++;
scanIdentifierChain(); scanIdentifierChain();
if (token.isMalformed) { if (token.isMalformed) {
return; position(startPosition);
resetState();
break;
} }
if (token.tokenType != Tokens.X_IDENTIFIER) { if (token.tokenType != Tokens.X_IDENTIFIER) {
/* @todo 1.9.0 - review message malformed character set iden tifier */ /* @todo 1.9.0 - review message malformed character set iden tifier */
token.tokenType = Tokens.X_MALFORMED_STRING; token.tokenType = Tokens.X_MALFORMED_STRING;
token.isMalformed = true; token.isMalformed = true;
return; return;
} }
 End of changes. 3 change blocks. 
3 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)