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
This commit is contained in:
Samer Aldefai 2014-02-07 18:12:07 +01:00
parent 51a851469f
commit 3a06e0eae1
1 changed files with 2 additions and 0 deletions

View File

@ -348,6 +348,8 @@ function mixinDiscovery(MySQL) {
case 'TIMESTAMP': case 'TIMESTAMP':
case 'DATETIME': case 'DATETIME':
return 'Date'; return 'Date';
case 'POINT'
return 'GeoPoint';
default: default:
return 'String'; return 'String';
} }