~ubuntu-branches/debian/jessie/sqlheavy/jessie

« back to all changes in this revision

Viewing changes to sqlheavy/sqlheavy-table.vala

  • Committer: Package Import Robot
  • Author(s): Devid Antonio Filoni
  • Date: 2012-05-17 09:47:17 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120517094717-ue17pqaud5tywjj5
Tags: 0.1.1-1
* New upstream release (Closes: #663320).
* Fix debug-package-should-be-priority-extra lintian warning.
* debian/control: switch to vala-0.16 in Build-Depends field.
* debian/libsqlheavy-dev.install, debian/libsqlheavygtk-dev.install:
  install files in vala-0.16 dir.
* Update libsqlheavy0.1-0.symbols.amd64 file.
* debian/rules: update override_dh_makeshlibs target.
* Bump Standards-Version to 3.9.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
    private unowned GLib.Sequence<FieldInfo> get_field_data () throws SQLHeavy.Error {
96
96
      lock ( this._field_data ) {
97
97
        if ( this._field_data == null ) {
98
 
          this._field_data = new GLib.Sequence<FieldInfo> (GLib.g_object_unref);
 
98
          this._field_data = new GLib.Sequence<FieldInfo> ();
99
99
          this._field_names = new GLib.HashTable<string, int?>.full (GLib.str_hash, GLib.str_equal, GLib.g_free, GLib.g_free);
100
100
 
101
101
          var result = new SQLHeavy.Query (this.queryable, @"PRAGMA table_info (`$(escape_string (this.name))`);").execute ();
121
121
    private unowned GLib.Sequence<ForeignKeyInfo> get_foreign_key_data () throws SQLHeavy.Error {
122
122
      lock (this._foreign_key_data) {
123
123
        if ( this._foreign_key_data == null ) {
124
 
          this._foreign_key_data = new GLib.Sequence<ForeignKeyInfo> (GLib.g_object_unref);
 
124
          this._foreign_key_data = new GLib.Sequence<ForeignKeyInfo> ();
125
125
          this._foreign_key_names = new GLib.HashTable<string, int?>.full (GLib.str_hash, GLib.str_equal, GLib.g_free, GLib.g_free);
126
126
 
127
127
          var result = new SQLHeavy.Query (this.queryable, @"PRAGMA foreign_key_list (`$(escape_string (this.name))`);").execute ();
317
317
      lock ( this.child_rows ) {
318
318
        unowned GLib.Sequence<unowned SQLHeavy.Row>? list = this.child_rows.lookup (row.id);
319
319
        if ( list == null ) {
320
 
          this.child_rows.insert (row.id, new GLib.Sequence<unowned SQLHeavy.Row> (null));
 
320
          this.child_rows.insert (row.id, new GLib.Sequence<unowned SQLHeavy.Row> ());
321
321
          list = this.child_rows.lookup (row.id);
322
322
        }
323
323
        list.insert_sorted (row, SQLHeavy.Row.compare);