[gnome-devel-docs] Fix use of deprecated GDA method in platform demo



commit 681f100214a65e1a0675f0a403f79aed302c056b
Author: Mike Gray <mikegrayv2 yahoo com>
Date:   Fri Sep 11 22:27:05 2015 -0500

    Fix use of deprecated GDA method in platform demo
    
    https://bugzilla.gnome.org/show_bug.cgi?id=754859

 platform-demos/C/record-collection.js.page         |    6 +++---
 .../C/record-collection/record-collection.js       |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/platform-demos/C/record-collection.js.page b/platform-demos/C/record-collection.js.page
index 225d109..2df650d 100644
--- a/platform-demos/C/record-collection.js.page
+++ b/platform-demos/C/record-collection.js.page
@@ -178,9 +178,9 @@ Gtk.main ();]]></code>
     this.connection.open ();
 
     try {
-      var dm = Gda.execute_select_command (this.connection, "select * from demo");
+      var dm = this.connection.execute_select_command ("select * from demo");
     } catch (e) {
-      Gda.execute_non_select_command (this.connection, "create table demo (id integer, name varchar(100))");
+      this.connection.execute_non_select_command ("create table demo (id integer, name varchar(100))");
     }
   },]]></code>
   <list>
@@ -216,7 +216,7 @@ Gtk.main ();]]></code>
   </p>
   <code mime="application/javascript" style="numbered"><![CDATA[
   selectData: function () {
-    var dm = Gda.execute_select_command (this.connection, "select * from demo order by 1, 2");
+    var dm = this.connection.execute_select_command  ("select * from demo order by 1, 2");
     var iter = dm.create_iter ();
 
     var text = "";
diff --git a/platform-demos/C/record-collection/record-collection.js 
b/platform-demos/C/record-collection/record-collection.js
index 83d7d1e..c818ccc 100644
--- a/platform-demos/C/record-collection/record-collection.js
+++ b/platform-demos/C/record-collection/record-collection.js
@@ -70,14 +70,14 @@ Demo.prototype = {
     this.connection.open ();
 
     try {
-      var dm = Gda.execute_select_command (this.connection, "select * from demo");
+      var dm = this.connection.execute_select_command ("select * from demo");
     } catch (e) {
-      Gda.execute_non_select_command (this.connection, "create table demo (id integer, name varchar(100))");
+      this.connection.execute_non_select_command ("create table demo (id integer, name varchar(100))");
     }
   },
 
   selectData: function () {
-    var dm = Gda.execute_select_command (this.connection, "select * from demo order by 1, 2");
+    var dm = this.connection.execute_select_command  ("select * from demo order by 1, 2");
     var iter = dm.create_iter ();
 
     var text = "";


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]