Revert "[jOOQ/jOOQ#11172] Support SQLite VIRTUAL tables without column defs"
This commit is contained in:
parent
0a8cc44eae
commit
83f8d3638f
@ -332,7 +332,6 @@ import static org.jooq.impl.ParserContext.Type.S;
|
||||
import static org.jooq.impl.ParserContext.Type.X;
|
||||
import static org.jooq.impl.ParserContext.Type.Y;
|
||||
import static org.jooq.impl.SQLDataType.BIGINT;
|
||||
import static org.jooq.impl.SQLDataType.CLOB;
|
||||
import static org.jooq.impl.SQLDataType.INTEGER;
|
||||
import static org.jooq.impl.SQLDataType.NVARCHAR;
|
||||
import static org.jooq.impl.Tools.EMPTY_BYTE;
|
||||
@ -3688,9 +3687,8 @@ final class ParserContext {
|
||||
private final DDLQuery parseCreateTable(boolean temporary) {
|
||||
boolean ifNotExists = parseKeywordIf("IF NOT EXISTS");
|
||||
Table<?> tableName = DSL.table(parseTableName().getQualifiedName());
|
||||
boolean using = parseKeywordIf("USING");
|
||||
|
||||
if (using)
|
||||
if (parseKeywordIf("USING"))
|
||||
parseIdentifier();
|
||||
|
||||
CreateTableCommentStep commentStep;
|
||||
@ -3800,7 +3798,7 @@ final class ParserContext {
|
||||
|
||||
parse(')');
|
||||
}
|
||||
else if (!using)
|
||||
else
|
||||
ctas = true;
|
||||
|
||||
CreateTableColumnStep columnStep = ifNotExists
|
||||
@ -3814,10 +3812,6 @@ final class ParserContext {
|
||||
if (!fields.isEmpty())
|
||||
columnStep = columnStep.columns(fields);
|
||||
|
||||
// [#11172] SQLite VIRTUAL tables without explicit column definitions default to a single (content text) column.
|
||||
else if (using)
|
||||
columnStep = columnStep.columns(field(unquotedName("content"), CLOB));
|
||||
|
||||
if (TRUE.equals(ctas) && parseKeyword("AS") ||
|
||||
!FALSE.equals(ctas) && parseKeywordIf("AS")) {
|
||||
boolean previousMetaLookupsForceIgnore = metaLookupsForceIgnore();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user