Replies: 1 comment 1 reply
-
|
Hi, thanks for the details. Two quick questions so I can reproduce precisely: What’s going wrong (root cause): Since we stopped further development for Benerator, we strongly recommend migrating to DATAMIMIC. Best Regards |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Caused by: java.text.ParseException: Unparseable date: "dateadd(second,(-1),sysutcdatetime())"
at java.base/java.text.DateFormat.parse(DateFormat.java:399)
at com.rapiddweller.common.converter.String2DateConverter.convert(String2DateConverter.java:91)
... 38 common frames omitted
CREATE TABLE [dbo].[User](
[UserAccountID] [int] IDENTITY(1,1) NOT NULL,
[UserID] [int] NULL,
[AccountID] [int] NULL,
[CreatedBy] varchar NULL,
[CreatedDate] [datetime] NULL,
[UpdatedBy] varchar NULL,
[UpdatedDate] [datetime] NULL,
[ValidFrom] datetime2 GENERATED ALWAYS AS ROW START HIDDEN NOT NULL,
[ValidTo] datetime2 GENERATED ALWAYS AS ROW END HIDDEN NOT NULL,
CONSTRAINT [PK_User_UserAccountID] PRIMARY KEY CLUSTERED
(
[UserAccountID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY],
PERIOD FOR SYSTEM_TIME ([ValidFrom], [ValidTo])
) ON [PRIMARY]
WITH
(
SYSTEM_VERSIONING = ON ( HISTORY_TABLE = [dbo].[UserHistory] )
)
GO
ALTER TABLE [dbo].[User] ADD CONSTRAINT [DF_User_CreatedBy] DEFAULT (suser_sname()) FOR [CreatedBy]
GO
ALTER TABLE [dbo].[User] ADD CONSTRAINT [DF_User_CreatedDate] DEFAULT (getdate()) FOR [CreatedDate]
GO
ALTER TABLE [dbo].[User] ADD CONSTRAINT [DF_User_ValidFrom] DEFAULT (dateadd(second,(-1),sysutcdatetime())) FOR [ValidFrom]
GO
ALTER TABLE [dbo].[User] ADD CONSTRAINT [DF_User_ValidTo] DEFAULT ('9999.12.31 23:59:59.99') FOR [ValidTo]
GO
Beta Was this translation helpful? Give feedback.
All reactions