Skip to content

DDL accepts default '' for a date type [CORE1075] #1497

Open
@firebird-automations

Description

@firebird-automations

Submitted by: Chris Laurie (chrislaurie)

Is duplicated by CORE1404
Is duplicated by CORE4128

I have a tool that creates and runs the scripts to maintain my table structure. The following DDL was accepted and created by Firebird but then later throws a type conversion error. If I remove the default '' from the DATE columns then the app works fine. Should the DDL not be rejected for an invalid default type?

Create Table QUESTIONAIREEDITION (ID char(20) Default '' NOT NULL CONSTRAINT PKQUESTIONAIREEDITION PRIMARY KEY, ENTITYID char(20) Default '', QUESTIONAIREID char(20) Default '', DESCRIPTION varchar(50) Default '', FROMDATE date Default '', TODATE date Default '', SEQUENCE integer Default 0)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions