fix: pg,mssql dual表需要一条数据

This commit is contained in:
dhb52
2024-05-08 00:28:11 +08:00
parent c52ec92b05
commit 7d9e6f2184
3 changed files with 40 additions and 7 deletions

View File

@ -207,7 +207,6 @@ class Convertor(ABC):
-- Table structure for dual
-- ----------------------------
{dual}
"""
)
@ -371,7 +370,17 @@ CREATE SEQUENCE {table_name}_seq
return """DROP TABLE IF EXISTS dual;
CREATE TABLE dual
(
);"""
id int2
);
COMMENT ON TABLE dual IS '数据库连接的表';
-- ----------------------------
-- Records of dual
-- ----------------------------
-- @formatter:off
INSERT INTO dual VALUES (1);
-- @formatter:on"""
class OracleConvertor(Convertor):
@ -636,7 +645,7 @@ GO
CREATE TABLE dual
(
id int NULL
id int
)
GO
@ -644,7 +653,15 @@ EXEC sp_addextendedproperty
'MS_Description', N'数据库连接的表',
'SCHEMA', N'dbo',
'TABLE', N'dual'
GO"""
GO
-- ----------------------------
-- Records of dual
-- ----------------------------
-- @formatter:off
INSERT INTO dual VALUES (1)
GO
-- @formatter:on"""
class DM8Convertor(Convertor):