From 09da598d901c5e5075629c1a677e7d685d16b9b8 Mon Sep 17 00:00:00 2001 From: "ondrej.zara" Date: Tue, 10 Nov 2009 13:31:40 +0000 Subject: [PATCH] #16 different datatype and pk datatype --HG-- extra : convert_revision : svn%3Ab267cdba-c1da-11dd-874b-8bacd04a0a74/trunk%4060 --- db/postgresql/datatypes.xml | 4 ++-- js/wwwsqldesigner.js | 32 +++++++++++++++++++++++++++++++- 2 files changed, 33 insertions(+), 3 deletions(-) diff --git a/db/postgresql/datatypes.xml b/db/postgresql/datatypes.xml index 138fce7..b0597a9 100644 --- a/db/postgresql/datatypes.xml +++ b/db/postgresql/datatypes.xml @@ -5,8 +5,8 @@ - - + + diff --git a/js/wwwsqldesigner.js b/js/wwwsqldesigner.js index 1ec115f..6740a89 100644 --- a/js/wwwsqldesigner.js +++ b/js/wwwsqldesigner.js @@ -134,6 +134,7 @@ SQL.Row.prototype.mousedown = function(e) { } SQL.Row.prototype.update = function(data) { /* update subset of row data */ + var des = SQL.Designer; if (data.nll && data.def && data.def.match(/^null$/i)) { data.def = null; } for (var p in data) { this.data[p] = data[p]; } @@ -142,7 +143,7 @@ SQL.Row.prototype.update = function(data) { /* update subset of row data */ var elm = this.getDataType(); for (var i=0;i