LinqConnect Professional Version 4.4.383 (28-Nov-2013) - Incorrect DEFAULT value for System.Boolean

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
AKRRKA
Posts: 198
Joined: Thu 26 Jan 2012 15:07
Location: Russia
Contact:

LinqConnect Professional Version 4.4.383 (28-Nov-2013) - Incorrect DEFAULT value for System.Boolean

Post by AKRRKA » Thu 12 Dec 2013 13:43

Hello.

I use one model for many database type.

When generate database from model, for field with type System.Boolean generate incorrect SQL code for DEFAULT value.

If set DEFAULT value to False or True, generate code, like this:
PS: System.Boolean convert to NUMBER(1).

Code: Select all

-- 
-- Creating a table CEDATABASE."SpecialDays" 
-- 
CREATE TABLE CEDATABASE."SpecialDays" (
   "SpecialDaysId" NUMBER(10) NOT NULL,
   "IsAnual" NUMBER(1) DEFAULT False NOT NULL,
   "IsWorkingDay" NUMBER(1) DEFAULT True NOT NULL,
);

Must be:

Code: Select all

   "IsAnual" NUMBER(1) DEFAULT 0 NOT NULL,
   "IsWorkingDay" NUMBER(1) DEFAULT 1 NOT NULL,
For MySQL, PostgreSql, SQLite and MS SQL Server all ok.

Please fix it.
Thanks.

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: LinqConnect Professional Version 4.4.383 (28-Nov-2013) - Incorrect DEFAULT value for System.Boolean

Post by MariiaI » Fri 13 Dec 2013 11:06

Thank you for the report. We have reproduced this issue. We will inform you about the results as soon as possible.

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: LinqConnect Professional Version 4.4.383 (28-Nov-2013) - Incorrect DEFAULT value for System.Boolean

Post by MariiaI » Thu 26 Dec 2013 13:06

New build of LinqConnect 4.4.403 is available for download now!
It can be downloaded from http://www.devart.com/linqconnect/download.html (trial version) or from Registered Users' Area (for users with active subscription only).
For more information, please refer to http://forums.devart.com/viewtopic.php?f=31&t=28602.

AKRRKA
Posts: 198
Joined: Thu 26 Jan 2012 15:07
Location: Russia
Contact:

Re: LinqConnect Professional Version 4.4.383 (28-Nov-2013) - Incorrect DEFAULT value for System.Boolean

Post by AKRRKA » Fri 27 Dec 2013 11:35

I checked and confirm.
Thank you.

Now generated this SQL code:

Code: Select all

   "IsAnual" NUMBER(1) DEFAULT 0 NOT NULL,
   "IsWorkingDay" NUMBER(1) DEFAULT 0 NOT NULL,

Post Reply