Fix the regression caused by juggler
This commit is contained in:
parent
d9169c8d0b
commit
03cec48c85
|
@ -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
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in New Issue