This is an automated email from the ASF dual-hosted git repository.
duanzhengqiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new bc458ef1973 Support parsing `ALTER OPERATOR` in PostgreSQL (#18322)
bc458ef1973 is described below
commit bc458ef1973bd33b5580514dd10461e6be63e31c
Author: Everly Precia Suresh <[email protected]>
AuthorDate: Mon Jun 13 10:51:23 2022 +0530
Support parsing `ALTER OPERATOR` in PostgreSQL (#18322)
* optimize alter operator grammar
* Support Parsing ALTER OPERATOR in PostgreSQL
---
.../src/main/antlr4/imports/postgresql/BaseRule.g4 | 8 +++---
.../main/antlr4/imports/postgresql/DDLStatement.g4 | 4 +--
.../parser/autogen/PostgreSQLStatementParser.g4 | 1 +
.../impl/PostgreSQLDDLStatementSQLVisitor.java | 7 ++++++
.../core/database/visitor/SQLVisitorRule.java | 2 ++
.../statement/ddl/AlterOperatorStatement.java | 28 +++++++++++++++++++++
.../ddl/PostgreSQLAlterOperatorStatement.java | 29 ++++++++++++++++++++++
.../jaxb/cases/domain/SQLParserTestCases.java | 5 ++++
.../ddl/AlterOperatorStatementTestCase.java | 26 +++++++++++++++++++
.../src/main/resources/case/ddl/alter-operator.xml | 24 ++++++++++++++++++
.../resources/sql/supported/ddl/alter-operator.xml | 24 ++++++++++++++++++
.../main/resources/sql/unsupported/unsupported.xml | 22 ----------------
12 files changed, 151 insertions(+), 29 deletions(-)
diff --git
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/imports/postgresql/BaseRule.g4
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/imports/postgresql/BaseRule.g4
index 45735d6fa48..b2ac91bb351 100644
---
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/imports/postgresql/BaseRule.g4
+++
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/imports/postgresql/BaseRule.g4
@@ -461,7 +461,7 @@ typeFuncNameKeyword
;
schemaName
- : identifier
+ : (owner DOT_)? identifier
;
tableName
@@ -1506,6 +1506,7 @@ roleSpec
| nonReservedWord
| CURRENT_USER
| SESSION_USER
+ | CURRENT_ROLE
;
varName
@@ -1703,10 +1704,7 @@ replicaIdentity
;
operArgtypes
- : LP_ typeName RP_
- | LP_ typeName COMMA_ typeName RP_
- | LP_ NONE COMMA_ typeName RP_
- | LP_ typeName COMMA_ NONE RP_
+ : LP_ (typeName | NONE) COMMA_ typeName RP_
;
funcArg
diff --git
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/imports/postgresql/DDLStatement.g4
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/imports/postgresql/DDLStatement.g4
index b0221a57a2d..635157ae052 100644
---
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/imports/postgresql/DDLStatement.g4
+++
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/imports/postgresql/DDLStatement.g4
@@ -671,7 +671,7 @@ opclassPurpose
;
alterOperatorClauses
- : operatorWithArgtypes SET SCHEMA name
+ : operatorWithArgtypes SET SCHEMA schemaName
| operatorWithArgtypes SET LP_ operatorDefList RP_
| operatorWithArgtypes OWNER TO roleSpec
;
@@ -681,7 +681,7 @@ operatorDefList
;
operatorDefElem
- : colLabel EQ_ (NONE | operatorDefArg)
+ : (RESTRICT | JOIN) EQ_ (NONE | operatorDefArg)
;
operatorDefArg
diff --git
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/org/apache/shardingsphere/sql/parser/autogen/PostgreSQLStatementParser.g4
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/org/apache/shardingsphere/sql/parser/autogen/PostgreSQLStatementParser.g4
index de392746b50..92b942df7a6 100644
---
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/org/apache/shardingsphere/sql/parser/autogen/PostgreSQLStatementParser.g4
+++
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/org/apache/shardingsphere/sql/parser/autogen/PostgreSQLStatementParser.g4
@@ -147,5 +147,6 @@ execute
| checkpoint
| close
| cluster
+ | alterOperator
) SEMI_? EOF
;
diff --git
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/java/org/apache/shardingsphere/sql/parser/postgresql/visitor/statement/impl/PostgreSQLDDLStatementSQLVisitor.java
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/java/org/apache/shardingsphere/sql/parser/postgresql/visitor/statement/impl/PostgreSQLDDLStatementSQLVisitor.java
index 9b0ba15489e..b467a6a6b44 100644
---
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/java/org/apache/shardingsphere/sql/parser/postgresql/visitor/statement/impl/PostgreSQLDDLStatementSQLVisitor.java
+++
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/java/org/apache/shardingsphere/sql/parser/postgresql/visitor/statement/impl/PostgreSQLDDLStatementSQLVisitor.java
@@ -37,6 +37,7 @@ import
org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.Al
import
org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AlterIndexContext;
import
org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AlterLanguageContext;
import
org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AlterMaterializedViewContext;
+import
org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AlterOperatorContext;
import
org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AlterProcedureContext;
import
org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AlterRenameViewContext;
import
org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AlterSchemaContext;
@@ -172,6 +173,7 @@ import
org.apache.shardingsphere.sql.parser.sql.dialect.statement.postgresql.ddl
import
org.apache.shardingsphere.sql.parser.sql.dialect.statement.postgresql.ddl.PostgreSQLAlterIndexStatement;
import
org.apache.shardingsphere.sql.parser.sql.dialect.statement.postgresql.ddl.PostgreSQLAlterLanguageStatement;
import
org.apache.shardingsphere.sql.parser.sql.dialect.statement.postgresql.ddl.PostgreSQLAlterMaterializedViewStatement;
+import
org.apache.shardingsphere.sql.parser.sql.dialect.statement.postgresql.ddl.PostgreSQLAlterOperatorStatement;
import
org.apache.shardingsphere.sql.parser.sql.dialect.statement.postgresql.ddl.PostgreSQLAlterProcedureStatement;
import
org.apache.shardingsphere.sql.parser.sql.dialect.statement.postgresql.ddl.PostgreSQLAlterSchemaStatement;
import
org.apache.shardingsphere.sql.parser.sql.dialect.statement.postgresql.ddl.PostgreSQLAlterSequenceStatement;
@@ -395,6 +397,11 @@ public final class PostgreSQLDDLStatementSQLVisitor
extends PostgreSQLStatementS
return new PostgreSQLAlterMaterializedViewStatement();
}
+ @Override
+ public ASTNode visitAlterOperator(final AlterOperatorContext ctx) {
+ return new PostgreSQLAlterOperatorStatement();
+ }
+
@Override
public ASTNode visitAddConstraintSpecification(final
AddConstraintSpecificationContext ctx) {
return new
AddConstraintDefinitionSegment(ctx.getStart().getStartIndex(),
ctx.getStop().getStopIndex(), (ConstraintDefinitionSegment)
visit(ctx.tableConstraint()));
diff --git
a/shardingsphere-sql-parser/shardingsphere-sql-parser-engine/src/main/java/org/apache/shardingsphere/sql/parser/core/database/visitor/SQLVisitorRule.java
b/shardingsphere-sql-parser/shardingsphere-sql-parser-engine/src/main/java/org/apache/shardingsphere/sql/parser/core/database/visitor/SQLVisitorRule.java
index 64394a25e2b..5a013ef6812 100644
---
a/shardingsphere-sql-parser/shardingsphere-sql-parser-engine/src/main/java/org/apache/shardingsphere/sql/parser/core/database/visitor/SQLVisitorRule.java
+++
b/shardingsphere-sql-parser/shardingsphere-sql-parser-engine/src/main/java/org/apache/shardingsphere/sql/parser/core/database/visitor/SQLVisitorRule.java
@@ -70,6 +70,8 @@ public enum SQLVisitorRule {
ALTER_MATERIALIZED_VIEW("AlterMaterializedView", SQLStatementType.DDL),
+ ALTER_OPERATOR("AlterOperator", SQLStatementType.DDL),
+
DROP_TABLE("DropTable", SQLStatementType.DDL),
TRUNCATE_TABLE("TruncateTable", SQLStatementType.DDL),
diff --git
a/shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/main/java/org/apache/shardingsphere/sql/parser/sql/common/statement/ddl/AlterOperatorStatement.java
b/shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/main/java/org/apache/shardingsphere/sql/parser/sql/common/statement/ddl/AlterOperatorStatement.java
new file mode 100644
index 00000000000..696906063fb
--- /dev/null
+++
b/shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/main/java/org/apache/shardingsphere/sql/parser/sql/common/statement/ddl/AlterOperatorStatement.java
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.shardingsphere.sql.parser.sql.common.statement.ddl;
+
+import lombok.ToString;
+import
org.apache.shardingsphere.sql.parser.sql.common.statement.AbstractSQLStatement;
+
+/**
+ * Alter operator statement.
+ */
+@ToString
+public abstract class AlterOperatorStatement extends AbstractSQLStatement
implements DDLStatement {
+}
diff --git
a/shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/main/java/org/apache/shardingsphere/sql/parser/sql/dialect/statement/postgresql/ddl/PostgreSQLAlterOperatorStatement.java
b/shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/main/java/org/apache/shardingsphere/sql/parser/sql/dialect/statement/postgresql/ddl/PostgreSQLAlterOperatorStatement.java
new file mode 100644
index 00000000000..16d7504f0ba
--- /dev/null
+++
b/shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/main/java/org/apache/shardingsphere/sql/parser/sql/dialect/statement/postgresql/ddl/PostgreSQLAlterOperatorStatement.java
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package
org.apache.shardingsphere.sql.parser.sql.dialect.statement.postgresql.ddl;
+
+import lombok.ToString;
+import
org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.AlterOperatorStatement;
+import
org.apache.shardingsphere.sql.parser.sql.dialect.statement.postgresql.PostgreSQLStatement;
+
+/**
+ * PostgreSQL alter operator statement.
+ */
+@ToString
+public final class PostgreSQLAlterOperatorStatement extends
AlterOperatorStatement implements PostgreSQLStatement {
+}
diff --git
a/shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/jaxb/cases/domain/SQLParserTestCases.java
b/shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/jaxb/cases/domain/SQLParserTestCases.java
index ed6dc65e49b..81fc6434f72 100644
---
a/shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/jaxb/cases/domain/SQLParserTestCases.java
+++
b/shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/jaxb/cases/domain/SQLParserTestCases.java
@@ -109,6 +109,7 @@ import
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain
import
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.ddl.AlterIndexStatementTestCase;
import
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.ddl.AlterLanguageStatementTestCase;
import
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.ddl.AlterMaterializedViewStatementTestCase;
+import
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.ddl.AlterOperatorStatementTestCase;
import
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.ddl.AlterOutlineStatementTestCase;
import
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.ddl.AlterPackageStatementTestCase;
import
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.ddl.AlterProcedureStatementTestCase;
@@ -1274,6 +1275,9 @@ public final class SQLParserTestCases {
@XmlElement(name = "alter-materialized-view")
private final List<AlterMaterializedViewStatementTestCase>
alterMaterializedViewTestCases = new LinkedList<>();
+ @XmlElement(name = "alter-operator")
+ private final List<AlterOperatorStatementTestCase> alterOperatorTestCases
= new LinkedList<>();
+
@XmlElement(name = "create-text-search")
private final List<CreateTextSearchStatementTestCase>
createTextSearchTestCases = new LinkedList<>();
@@ -1737,6 +1741,7 @@ public final class SQLParserTestCases {
putAll(dropForeignTableTestCases, result);
putAll(alterGroupTestCases, result);
putAll(alterMaterializedViewTestCases, result);
+ putAll(alterOperatorTestCases, result);
putAll(createTextSearchTestCases, result);
putAll(alterTextSearchTestCases, result);
putAll(createLanguageTestCases, result);
diff --git
a/shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/jaxb/cases/domain/statement/ddl/AlterOperatorStatementTestCase.java
b/shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/jaxb/cases/domain/statement/ddl/AlterOperatorStatementTestCase.java
new file mode 100644
index 00000000000..7068b7d59ca
--- /dev/null
+++
b/shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/jaxb/cases/domain/statement/ddl/AlterOperatorStatementTestCase.java
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.ddl;
+
+import
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.SQLParserTestCase;
+
+/**
+ * Alter operator statement test case.
+ */
+public final class AlterOperatorStatementTestCase extends SQLParserTestCase {
+}
diff --git
a/shardingsphere-test/shardingsphere-parser-test/src/main/resources/case/ddl/alter-operator.xml
b/shardingsphere-test/shardingsphere-parser-test/src/main/resources/case/ddl/alter-operator.xml
new file mode 100644
index 00000000000..6e561f8b805
--- /dev/null
+++
b/shardingsphere-test/shardingsphere-parser-test/src/main/resources/case/ddl/alter-operator.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+<sql-parser-test-cases>
+ <alter-operator sql-case-id="alter_operator_owner" />
+ <alter-operator sql-case-id="alter_operator_set_schema" />
+ <alter-operator sql-case-id="alter_operator_set" />
+ <alter-operator sql-case-id="alter_operator_set_restrict_join" />
+</sql-parser-test-cases>
diff --git
a/shardingsphere-test/shardingsphere-parser-test/src/main/resources/sql/supported/ddl/alter-operator.xml
b/shardingsphere-test/shardingsphere-parser-test/src/main/resources/sql/supported/ddl/alter-operator.xml
new file mode 100644
index 00000000000..2312a332415
--- /dev/null
+++
b/shardingsphere-test/shardingsphere-parser-test/src/main/resources/sql/supported/ddl/alter-operator.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+<sql-cases>
+ <sql-case id="alter_operator_owner" value="ALTER OPERATOR @+@(int4, int4)
OWNER TO regress_alter_generic_user2" db-types="PostgreSQL" />
+ <sql-case id="alter_operator_set_schema" value="ALTER OPERATOR @+@(int4,
int4) SET SCHEMA alt_nsp2;" db-types="PostgreSQL" />
+ <sql-case id="alter_operator_set" value="ALTER OPERATOR === (boolean,
boolean) SET (RESTRICT = non_existent_func);" db-types="PostgreSQL" />
+ <sql-case id="alter_operator_set_restrict_join" value="ALTER OPERATOR ===
(boolean, boolean) SET (RESTRICT = customcontsel, JOIN = contjoinsel);"
db-types="PostgreSQL" />
+</sql-cases>
diff --git
a/shardingsphere-test/shardingsphere-parser-test/src/main/resources/sql/unsupported/unsupported.xml
b/shardingsphere-test/shardingsphere-parser-test/src/main/resources/sql/unsupported/unsupported.xml
index 09d19571928..395d9028dcc 100644
---
a/shardingsphere-test/shardingsphere-parser-test/src/main/resources/sql/unsupported/unsupported.xml
+++
b/shardingsphere-test/shardingsphere-parser-test/src/main/resources/sql/unsupported/unsupported.xml
@@ -39,7 +39,6 @@
<sql-case id="create_foreign_data_wrapper" value="CREATE FOREIGN DATA
WRAPPER alt_fdw1" db-types="PostgreSQL" />
<sql-case id="create_server" value="CREATE SERVER alt_fserv1 FOREIGN DATA
WRAPPER alt_fdw1;" db-types="PostgreSQL" />
<sql-case id="create_operator" value="CREATE OPERATOR @-@ ( leftarg =
int4, rightarg = int4, procedure = int4mi )" db-types="PostgreSQL" />
- <sql-case id="alter_operator" value="ALTER OPERATOR @+@(int4, int4) OWNER
TO regress_alter_generic_user2" db-types="PostgreSQL" />
<sql-case id="create_statistics" value="CREATE STATISTICS alt_stat1 ON a,
b FROM alt_regress_1" db-types="PostgreSQL" />
<sql-case id="alter_statistics" value="ALTER STATISTICS alt_stat1 RENAME
TO alt_stat2" db-types="PostgreSQL" />
<sql-case id="create_table_no_valid" value="create table nv_parent (d
date, check (false) no inherit not valid)" db-types="PostgreSQL" />
@@ -3875,26 +3874,6 @@
<sql-case id="low_with_by_mysql_source_test_case1" value="with qn as
(SELECT MAX(a) FROM t1 WHERE (b) IN ( SELECT MIN(t2.b) FROM (SELECT b from t1)
AS t2 GROUP BY t2.b WITH ROLLUP HAVING GROUPING (t2.b)=0)) SELECT * FROM qn"
db-types="MySQL" />
<sql-case id="low_with_by_mysql_source_test_case2" value="with t1 as
(select * from t1 where a=3) delete from t1" db-types="MySQL" />
<sql-case id="low_with_by_mysql_source_test_case3" value="with t1 as
(select * from t1 where a=3) delete t1.* from t1, t1 as t2" db-types="MySQL" />
- <sql-case id="alter_by_postgresql_source_test_case131" value="ALTER
OPERATOR & (bit, bit) SET ("Restrict" = _int_contsel,
"Join" = _int_contjoinsel);" db-types="PostgreSQL" />
- <sql-case id="alter_by_postgresql_source_test_case132" value="ALTER
OPERATOR === (boolean, boolean) SET (COMMUTATOR = !==);" db-types="PostgreSQL"
/>
- <sql-case id="alter_by_postgresql_source_test_case133" value="ALTER
OPERATOR === (boolean, boolean) SET (COMMUTATOR = ====);" db-types="PostgreSQL"
/>
- <sql-case id="alter_by_postgresql_source_test_case134" value="ALTER
OPERATOR === (boolean, boolean) SET (JOIN = NONE);" db-types="PostgreSQL" />
- <sql-case id="alter_by_postgresql_source_test_case135" value="ALTER
OPERATOR === (boolean, boolean) SET (JOIN = contjoinsel);"
db-types="PostgreSQL" />
- <sql-case id="alter_by_postgresql_source_test_case136" value="ALTER
OPERATOR === (boolean, boolean) SET (JOIN = non_existent_func);"
db-types="PostgreSQL" />
- <sql-case id="alter_by_postgresql_source_test_case137" value="ALTER
OPERATOR === (boolean, boolean) SET (NEGATOR = !==);" db-types="PostgreSQL" />
- <sql-case id="alter_by_postgresql_source_test_case138" value="ALTER
OPERATOR === (boolean, boolean) SET (NEGATOR = ====);" db-types="PostgreSQL" />
- <sql-case id="alter_by_postgresql_source_test_case139" value="ALTER
OPERATOR === (boolean, boolean) SET (RESTRICT = NONE);" db-types="PostgreSQL" />
- <sql-case id="alter_by_postgresql_source_test_case140" value="ALTER
OPERATOR === (boolean, boolean) SET (RESTRICT = NONE);" db-types="PostgreSQL" />
- <sql-case id="alter_by_postgresql_source_test_case141" value="ALTER
OPERATOR === (boolean, boolean) SET (RESTRICT = NONE, JOIN = NONE);"
db-types="PostgreSQL" />
- <sql-case id="alter_by_postgresql_source_test_case142" value="ALTER
OPERATOR === (boolean, boolean) SET (RESTRICT = contsel);"
db-types="PostgreSQL" />
- <sql-case id="alter_by_postgresql_source_test_case143" value="ALTER
OPERATOR === (boolean, boolean) SET (RESTRICT = customcontsel, JOIN =
contjoinsel);" db-types="PostgreSQL" />
- <sql-case id="alter_by_postgresql_source_test_case144" value="ALTER
OPERATOR === (boolean, boolean) SET (RESTRICT = non_existent_func);"
db-types="PostgreSQL" />
- <sql-case id="alter_by_postgresql_source_test_case145" value="ALTER
OPERATOR @+@(int4, int4) OWNER TO regress_alter_generic_user2;"
db-types="PostgreSQL" />
- <sql-case id="alter_by_postgresql_source_test_case146" value="ALTER
OPERATOR @+@(int4, int4) OWNER TO regress_alter_generic_user2;"
db-types="PostgreSQL" />
- <sql-case id="alter_by_postgresql_source_test_case147" value="ALTER
OPERATOR @+@(int4, int4) OWNER TO regress_alter_generic_user3;"
db-types="PostgreSQL" />
- <sql-case id="alter_by_postgresql_source_test_case148" value="ALTER
OPERATOR @+@(int4, int4) SET SCHEMA alt_nsp2;" db-types="PostgreSQL" />
- <sql-case id="alter_by_postgresql_source_test_case149" value="ALTER
OPERATOR @-@(int4, int4) OWNER TO regress_alter_generic_user3;"
db-types="PostgreSQL" />
- <sql-case id="alter_by_postgresql_source_test_case150" value="ALTER
OPERATOR @-@(int4, int4) SET SCHEMA alt_nsp2;" db-types="PostgreSQL" />
<sql-case id="alter_by_postgresql_source_test_case151" value="ALTER
OPERATOR CLASS alt_opc1 USING hash OWNER TO regress_alter_generic_user1;"
db-types="PostgreSQL" />
<sql-case id="alter_by_postgresql_source_test_case152" value="ALTER
OPERATOR CLASS alt_opc1 USING hash OWNER TO regress_alter_generic_user2;"
db-types="PostgreSQL" />
<sql-case id="alter_by_postgresql_source_test_case153" value="ALTER
OPERATOR CLASS alt_opc1 USING hash RENAME TO alt_opc2;" db-types="PostgreSQL" />
@@ -7065,7 +7044,6 @@
<sql-case id="low_alter_by_postgresql_source_test_case47" value="alter
event trigger regress_event_trigger owner to regress_evt_user;"
db-types="PostgreSQL" />
<sql-case id="low_alter_by_postgresql_source_test_case48" value="alter
event trigger regress_event_trigger rename to regress_event_trigger2;"
db-types="PostgreSQL" />
<sql-case id="low_alter_by_postgresql_source_test_case49" value="alter
event trigger regress_event_trigger rename to regress_event_trigger3;"
db-types="PostgreSQL" />
- <sql-case id="low_alter_by_postgresql_source_test_case50" value="alter
operator alter1.=(alter1.ctype, alter1.ctype) set schema alter2;"
db-types="PostgreSQL" />
<sql-case id="low_alter_by_postgresql_source_test_case51" value="alter
operator class alter1.ctype_hash_ops using hash set schema alter2;"
db-types="PostgreSQL" />
<sql-case id="low_alter_by_postgresql_source_test_case52" value="alter
operator family alter1.ctype_hash_ops using hash set schema alter2;"
db-types="PostgreSQL" />
<sql-case id="low_alter_by_postgresql_source_test_case53" value="alter
operator family integer_ops using btree add function 1 int8alias1cmp (int8,
int8alias1);" db-types="PostgreSQL" />