From 531f17c6ee92d17e9c622a209f608f75e6d11a75 Mon Sep 17 00:00:00 2001 From: Chris Cranford Date: Thu, 14 Mar 2024 17:06:51 -0400 Subject: [PATCH] DBZ-7643 Support numeric values without mantissas --- .../io/debezium/ddl/parser/oracle/generated/PlSqlParser.g4 | 2 +- .../src/test/resources/oracle/examples/ddl_alter.sql | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debezium-ddl-parser/src/main/antlr4/io/debezium/ddl/parser/oracle/generated/PlSqlParser.g4 b/debezium-ddl-parser/src/main/antlr4/io/debezium/ddl/parser/oracle/generated/PlSqlParser.g4 index a36d22993d2..b3c109142a2 100644 --- a/debezium-ddl-parser/src/main/antlr4/io/debezium/ddl/parser/oracle/generated/PlSqlParser.g4 +++ b/debezium-ddl-parser/src/main/antlr4/io/debezium/ddl/parser/oracle/generated/PlSqlParser.g4 @@ -5209,7 +5209,7 @@ constant ; numeric - : UNSIGNED_INTEGER + : UNSIGNED_INTEGER '.'? | APPROXIMATE_NUM_LIT ; diff --git a/debezium-ddl-parser/src/test/resources/oracle/examples/ddl_alter.sql b/debezium-ddl-parser/src/test/resources/oracle/examples/ddl_alter.sql index 3e56229e592..de79cdf088a 100644 --- a/debezium-ddl-parser/src/test/resources/oracle/examples/ddl_alter.sql +++ b/debezium-ddl-parser/src/test/resources/oracle/examples/ddl_alter.sql @@ -77,3 +77,5 @@ ALTER TABLE TABLE_NAME SPLIT PARTITION TABLE_NAME_CURRENT AT (TO_DATE('20240116040241', 'YYYYMMDDHH24MISS')) INTO (PARTITION TABLE_NAME_20240116040241, PARTITION TABLE_NAME_CURRENT) UPDATE INDEXES (COST_IX (PARTITION C_P1 TABLESPACE TBS_02, PARTITION C_P2 TABLESPACE TBS_03)); + +ALTER TABLE "AB01"."SMOSTAMM" ADD CONSTRAINT "CC_SMOSTAMM_KRAB" CHECK ((KRAB >= 0. ) AND (KRAB <= 100. )) ENABLE;