From 03cec48c850c3eccbbf15a99d0aa5f12f3a87d7a Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Wed, 20 Nov 2013 10:54:01 -0800 Subject: [PATCH] Fix the regression caused by juggler --- lib/mysql.js | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/mysql.js b/lib/mysql.js index b7a67d6..02a3b0e 100644 --- a/lib/mysql.js +++ b/lib/mysql.js @@ -3,7 +3,7 @@ */ var mysql = require('mysql'); -var jdb = require('loopback-datasource-juggler'); +var juggler = require('loopback-datasource-juggler'); var EnumFactory = require('./enumFactory').EnumFactory; /** @@ -73,7 +73,7 @@ exports.initialize = function initializeDataSource(dataSource, callback) { }); // MySQL specific column types - dataSource.constructor.registerType(function Point() {}); + juggler.ModelBuilder.registerType(function Point() {}); dataSource.EnumFactory = EnumFactory; // factory for Enums. Note that currently Enums can not be registered. @@ -94,7 +94,7 @@ function MySQL(client, settings) { this.settings = settings; } -require('util').inherits(MySQL, jdb.BaseSQL); +require('util').inherits(MySQL, juggler.BaseSQL); /** * Execute the sql statement diff --git a/package.json b/package.json index 4db5532..67b3d5b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "loopback-connector-mysql", - "version": "1.0.1", + "version": "1.0.2", "description": "MySQL connector for loopback-datasource-juggler", "main": "index.js", "scripts": {