× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
tariqrahiman reported 2012-11-13T23:41:05Z  · last modified 2012-12-07T18:49:47Z

Scripting constraints in SQLite


Dev
Jenny Nishimura
JennyNishimura
QA
Niels Gron
NielsGron
Priority Low
Complexity Unknown
Component App - Visual Editing
Version 13.0

Version: 13.0-dev-14
Build #: 30127
Build Date: 2012-Nov-09 03:59:50 PM

I can create a table with check constraints in SQLite, but when I script it back with Script to New Window--> FULL, i dont see the created check contraints in the DDL.

For e.g.

CREATE TABLE [CON_CHK](
   [ProductID]INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
   [ProductName]TEXT NOT NULL,
   [SupplierID]INTEGER,
   [CategoryID]INTEGER,
   [QuantityPerUnit]TEXT,
   [UnitPrice]NUMERIC DEFAULT 0,
   [UnitsInStock]INTEGER DEFAULT 0,
   [UnitsOnOrder]INTEGER DEFAULT 0,
   [ReorderLevel]INTEGER DEFAULT 0,
   [Discontinued]TEXT NOT NULL DEFAULT '0',
    CHECK ([UnitPrice]>=(0)),
    CHECK ([ReorderLevel]>=(0)),
    CHECK ([UnitsInStock]>=(0)),
    CHECK ([UnitsOnOrder]>=(0))
)


When I script the sql from sqlite_master  dictionary table, i see it.

select * from sqlite_master where name='CON_CHK'

Issue #7948

Closed
Won't Fix
Resolved 2012-11-14T16:08:48Z
 
 
Completion
No due date
No fixed build
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017