dbgenerate.js
[app.Builder.js] / dbgenerate.js
index 586ed1a..53a7cb8 100644 (file)
@@ -25,7 +25,7 @@ console = imports.console;
 File = imports.File.File;
 Options = imports.Options.Options;
 
-Gda.init();
+//Gda.init();
 
 var prov = Gda.Config.list_providers ();
 //print(prov.dump_as_string());
@@ -100,7 +100,7 @@ var map = {
     'time' : 'string', //bogus
     'int' : 'int',
     'bigint' : 'int',
-    'double' : 'int',
+    'double' : 'float',
     'tinyint' : 'int',
     'decimal' : 'float',
     'float' : 'float',
@@ -121,7 +121,8 @@ var ini = { }
 function readIni(fn)
 {
     print('Read INI : ' + fn);
-    var key_file = new GLib.KeyFile.c_new();
+    //var key_file = new GLib.KeyFile.c_new();
+    var key_file = new GLib.KeyFile();
     if (!key_file.load_from_file (fn , GLib.KeyFileFlags.NONE )) {
         return;
     }