mirror of
https://github.com/DataTables/DataTables.git
synced 2026-04-25 03:00:08 -04:00
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:
@@ -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`)
|
||||
);
|
||||
|
||||
|
||||
@@ -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)
|
||||
);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user