From 3a06e0eae1167ac31e7ef257a034d4501691b181 Mon Sep 17 00:00:00 2001 From: Samer Aldefai Date: Fri, 7 Feb 2014 18:12:07 +0100 Subject: [PATCH] Update discovery.js The issue is with the Discovery of Models. MYSQL Fields of Type 'POINT' are being discovered but loopback LDL model field provided by discovery functions is being of type 'String'. missing code: case 'POINT': return 'GeoPoint'; for further information: https://github.com/strongloop/loopback-connector-mysql/issues/17 --- lib/discovery.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/discovery.js b/lib/discovery.js index 82b7665..4df3684 100644 --- a/lib/discovery.js +++ b/lib/discovery.js @@ -348,6 +348,8 @@ function mixinDiscovery(MySQL) { case 'TIMESTAMP': case 'DATETIME': return 'Date'; + case 'POINT' + return 'GeoPoint'; default: return 'String'; }