From da973b56c960024af69522ce28caf55959cef6e8 Mon Sep 17 00:00:00 2001 From: Anatoliy Chakkaev Date: Fri, 22 Feb 2013 01:25:15 +0700 Subject: [PATCH] Proper Point type registration --- lib/mysql.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/mysql.js b/lib/mysql.js index 56b713f..0e5334e 100644 --- a/lib/mysql.js +++ b/lib/mysql.js @@ -39,9 +39,7 @@ exports.initialize = function initializeSchema(schema, callback) { }); // MySQL specific column types - schema.types = { - Point: function Point() {} - }; + schema.constructor.registerType(function Point() {}); }; /**