Fix: Example SQL database had extension field as an integer. However, that meant that numbers such as 0001 were not correctly saved

This commit is contained in:
Allan Jardine
2014-09-08 15:14:33 +01:00
parent b1f1b2d961
commit cda203dbdc
5 changed files with 5 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ CREATE TABLE `datatables_demo` (
`start_date` timestamp DEFAULT CURRENT_TIMESTAMP,
`age` int(8),
`salary` int(8),
`extn` int(8),
`extn` varchar(8) NOT NULL default '',
PRIMARY KEY (`id`)
);

View File

@@ -13,7 +13,7 @@ CREATE TABLE datatables_demo (
start_date timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
age integer,
salary integer,
extn integer,
extn text NOT NULL default '',
PRIMARY KEY (id)
);

View File

@@ -13,7 +13,7 @@ CREATE TABLE datatables_demo (
start_date timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
age integer,
salary integer,
extn integer
extn text NOT NULL default ''
);
INSERT INTO datatables_demo

View File

@@ -14,7 +14,7 @@ CREATE TABLE datatables_demo (
start_date datetime DEFAULT GETDATE(),
age int,
salary int,
extn int,
extn varchar(8) NOT NULL default '',
PRIMARY KEY (id)
);