Released 3.99.5 2008-10-09 Vivien Malerba * libgda/binreloc/Makefile.am: install gda-binreloc.h in the $prefix/libgda-4.0/libgda/ directory ao applications can use it * libgda/binreloc/gda-binreloc.c: correctly handle specific install dir passed to the configure script (correct fix for bug #541991, comment 2) * libgda/sqlite/sqlite-src/: up to version 3.6.3 * libgda/information_schema.xml: added some descriptions * libgda/gda-attributes-manager.h: added expected types description * libgda/sqlite/virtual/gda-vprovider-data-model.c: don't use a GdaDataProxy, as it can bring some problems when modifying the data model (errors are not reported at the correct moment) * doc/C: doc. updates * tests/data-models/check_virtual.c: order the expected result to avoid test failure when comparing with expected data model * po/: ran 'make update-po' 2008-10-09 Johannes Schmid * libgda/gda-data-proxy.[ch]: added class method for "filter-changed" signal, for bug #537105 2008-10-07 Vivien Malerba * libgda/gda-server-operation.c: code cleanup * libgda/gda-column.c: * libgda/gda-holder.c: * libgda/gda-meta-struct.c: * libgda/gda-attributes-manager.[ch]: optionnally specify a callback function called whenever an attribute is changed * libgda/gda-data-model-import.c: renamed the GDA_TYPE_ option to G_TYPE_ * libgda/binreloc/Makefile.am: * libgda/binreloc/gda-binreloc.c: possible fix for bug #541991 (comment 2) 2008-10-07 Johannes Schmid * libgda-report/engine/gda-report-engine.c (value_to_node): * libgda-xslt/sql_backend.c (value_to_xmlchar): * libgda/gda-data-model-import.c (init_csv_import): * libgda/gda-easy.c (gda_get_default_handler): * libgda/gda-holder.c (gda_holder_class_init), (gda_holder_new_inline), (gda_holder_set_property), (gda_holder_get_property): * libgda/gda-server-provider-extra.c (gda_server_provider_get_data_handler_default): * libgda/gda-set.c (gda_set_new_inline), (gda_set_set_holder_value): * libgda/gda-value.c (set_from_string), (gda_value_differ), (gda_value_compare): * libgda/handlers/gda-handler-type.c (gda_handler_type_init), (gda_handler_type_get_value_from_sql), (gda_handler_type_get_value_from_str): * libgda/sqlite/gda-sqlite-provider.c (gda_sqlite_provider_get_default_dbms_type): * libgda/sqlite/virtual/gda-vprovider-data-model.c (virtualCreate): * providers/mysql/gda-mysql-provider.c (gda_mysql_provider_get_default_dbms_type): * providers/postgres/gda-postgres-provider.c (gda_postgres_provider_get_default_dbms_type): * providers/postgres/gda-postgres-recordset.c (set_value): * providers/skel-implementation/capi/gda-capi-provider.c (gda_capi_provider_get_default_dbms_type): #537159: Use GType instead of ulong/gint to represent GTypes 2008-10-06 Vivien Malerba * libgda/gda-attributes-manager.[ch]: added gda_attributes_manager_set_full() and the GDA_ATTRIBUTE_IS_DEFAULT define * libgda/gda-holder.[ch]: - added an "attribute-changed" signal - use the GDA_ATTRIBUTE_IS_DEFAULT when there is a default value * libgda/gda-set.[ch]: - removed the "holder-plugin-changed" signal - changed the signature of the "holder-attr-changed" signal - use the GdaHolder's "attribute-changed" signal - removed gda_set_get_spec() * libgda/gda-data-model-iter.c: update for the "holder-attr-changed" signal' signature change * libgda/libgda-paramlist.dtd: allow some children nodes to the node * libgda/gda-util.c: adaptations to the DTD changes 2008-10-04 Massimo Cora' * libgda/gda-holder.c (gda_holder_copy), (real_gda_holder_set_const_value): fixed typo in debug message. After a gda_holder_copy () call the GValue, even if static, is copied totally so that user should free it when finished to use. 2008-10-03 Vivien Malerba * providers/postgres/gda-postgres-meta.c: column's GType and DBMS type reporting error corrected. 2008-10-03 Massimo Cora' * libgda/gda-holder.c (real_gda_holder_set_value), (real_gda_holder_set_const_value), (gda_holder_take_static_value): * libgda/gda-holder.h: added a changed_value boolean parameter on gda_holder_take_static_value. Fixed some drawbacks with is_freeable flag. 2008-10-02 Vivien Malerba * doc/C/Makefile.am: don't forget to distribute the data_select.xml file so 'make distcheck' works 2008-10-02 Vivien Malerba * tools/command-exec.[ch]: * tools/gda-sql.c: - command arguments can be surrounded with simple or double quotes (quotes can also be escaped in the string) - don't output empty lines after results * libgda/gda-connection.[ch]: applied (modified) patch for bug #539754 * libgda/gda-attributes-manager.[ch]: new attributes manager * gda-holder.[ch]: - new gda_holder_get_attribute() and gda_holder_set_attribute() which use the new attributes manager - internally use the attributes manager to store name and desctiption - removed the "plugin" property which was a left-over from V3 * gda-column.[ch]: - new gda_column_get_attribute() and gda_column_set_attribute() which use the new attributes manager - internally use the attributes manager to store name and desctiption * libgda/gda-meta-struct-io.c: * tools/command-exec.c: * libgda/gda-meta-struct.[ch]: new gda_meta_table_column_get_attribute(), gda_meta_table_column_set_attribute() and gda_meta_table_column_foreach_attribute() which replace the GdaMetaTableColumn::extra attribute (more flexibility) * providers/postgres/gda-postgres-recordset.c: * providers/mdb/gda-mdb-provider.c: * providers/ibmdb2/gda-ibmdb2-recordset.c: * providers/mysql/gda-mysql-recordset.c: * providers/freetds/gda-freetds-recordset.c: * providers/sybase/gda-sybase-recordset.c: * providers/msql/gda-msql-recordset.c: * samples/BDB/custom-bdb-model.c: * libgda/sqlite/gda-sqlite-recordset.c: * libgda/sqlite/gda-sqlite-provider.c: * libgda/gda-data-model-dsn-list.c: * libgda/gda-data-model-import.c: * libgda/gda-data-model.c: * libgda/gda-data-proxy.c: * libgda/gda-data-model-array.c: * libgda/gda-server-provider-extra.c: * libgda/gda-data-model-bdb.c: * libgda/gda-data-model-dir.c: * libgda/gda-data-model-iter.c: * gda-column.[ch]: renamed gda_column_[gs]et_title() to gda_column_[gs]et_description() * libgda/sqlite/gda-sqlite-meta.c: fixed a bug in the fill_key_columns_model() function * doc/C: doc updates 2008-10-01 Johannes Schmid reviewed by: Murray Cumming * libgda/gda-column.c (gda_marshal_VOID__GTYPE_GTYPE), (gda_column_class_init): Use correct marshaller for GTypes 2008-09-30 Vivien Malerba * configure.in: * libgda/Makefile.am: make sure only the correct symbols are exported: - by requiring gmodule-no-export-2.0 instead of gmodule-2.0 - by excluding csv and sqlite3 symbols * libgda/sql-parser/gda-statement-struct-util.c: fixed comment so documentation can be built * libgda/sql-parser/parser.y: indentation correction * libgda/gda-data-model-array.c: added an assertion * libgda/gda-data-proxy.c: when the proxied data model is reset, make sure the column types are synced * libgda/gda-data-select.c: double free memory error corrected,a nd other minor corrections * libgda/sqlite/gda-sqlite-meta.c: removed useless debug code * libgda/sqlite/virtual/gda-vconnection-data-model-private.h: * libgda/sqlite/virtual/gda-vconnection-data-model.c: * libgda/sqlite/virtual/gda-vconnection-hub.c: * libgda/sqlite/virtual/gda-vprovider-data-model.c: - don't compute several times the columns of each virtual table - corrected case when the connection does not have any associated GdaMetaStore object * samples/TableCopy/common.c: * samples/TableCopy/table-copy.c: make this example work again * doc/C: doc updates 2008-09-29 Vivien Malerba * tools/gda-sql.c: - added some commands to manage data sources - improved providers list and DSN list output - allow executing files which start with ~ (HOME dir) * libgda/gda-config.c: make sure the DSN info records a boolean for its is_system attribute * WixInstaller/make-zip-exe.sh: now generate 3 ZIP files: - one for the runtime DLLs - one with the dev. files (includes, .pc, ...) - one with the runtime dependencies (Glib, database's native DLLs, ...) * libgda/gda-data-proxy.c: * libgda/gda-meta-struct-io.c: * libgda/gda-meta-struct.h: * libgda/gda-statement.c: * libgda/gda-util.c: * libgda/sql-parser/gda-sql-parser.h: * libgda/sqlite/virtual/gda-vprovider-data-model.c: * tests/gda-ddl-creator.c: * tools/command-exec.c: * libgda/sql-parser/gda-statement-struct-util.[ch]: export some new symbols, for bug #541991 * libgda/sqlite/gda-sqlite-meta.c: correctly handle multiple FK constraints to the same table * samples/SqlParserConsole/graph.c: make the example work again * providers/mysql/gda-mysql-provider.c: partially integrate the new GDA_STATEMENT_MODEL_ALLOW_NOPARAM (Carlos Savoretti) * doc/C: doc updates 2008-09-29 Massimo Cora' * libgda/gda-holder.c (gda_holder_init), (gda_holder_copy), (gda_holder_dispose), (real_gda_holder_set_value), (real_gda_holder_set_const_value), (gda_holder_take_static_value), (gda_holder_force_invalid), (gda_holder_set_value_to_default), (gda_holder_set_full_bind): * libgda/gda-holder.h: added function gda_holder_take_static_value () to permit a quicker use of GValues without allocation/deallocation. On my tests I can gain 20ms on 100 queries. 2008-09-26 Vivien Malerba * providers/postgres/gda-postgres-provider.c: * libgda/sqlite/gda-sqlite-provider.c: code cleanup * providers/skel-implementation/capi/gda-capi-provider.c: adapted skeleton implementation to support the GDA_STATEMENT_MODEL_ALLOW_NOPARAM flag * libgda/gda-holder.c: - the "g-type" property can now be set after construction, but only if it initially was GDA_TYPE_NULL - fixed a bug when the GdaHolder remained invalid even though it was not anymore * libgda/gda-set.c: indentation correction * libgda/gda-data-model-iter.c: adjust the GdaHolder's type when the data model is reset (in case it was GDA_TYPE_NULL) * tests/: new test cases * doc/C: * libgda/gda-connection.c: doc. updates * libgda/gda-data-proxy.c: made find_or_create_row_modif() static * libgda/gda-connection.c: made build_downstream_context_templates() and build_upstream_context_templates() static * README: point to the COPYING and COPYING.LIB files for the actual GPL and LGPL text 2008-09-25 Vivien Malerba * libgda/gda-server-provider-extra.[ch]: new gda_select_alter_select_for_empty() functions * tools/gda-sql.c: * tools/information-schema-doc.c: * testing/gda-provider-status.c: * libgda-xslt/sql_backend.c: * libgda/gda-util.c: * libgda/gda-server-provider.c: use xmlNewTextChild instead of xmlNewChild when necessary * libgda/gda-statement.h: new GDA_STATEMENT_MODEL_ALLOW_NOPARAM flag * libgda/sqlite/gda-sqlite-provider.c: * libgda/sqlite/gda-sqlite-recordset.[ch]: * providers/postgres/gda-postgres-provider.c: * libgda/gda-data-select.c: allow SELECT statement execution with invalid parameters to return an empty data model (if GDA_STATEMENT_MODEL_ALLOW_NOPARAM is set), in which case changing a parameter will re-run the SELECT, for bug #552708 * libgda/gda-server-operation.c: bug fixed * libgda/gda-data-model-iter.c: bug fixed in GdaHolder's properties * tests/: tests updates * libgda/gda-connection.c: * doc/C: doc. updates 2008-09-23 Vivien Malerba * sqlite/gda-sqlite-recordset.c: correctly handle the situation when the object is created with col_types specified * libgda/gda-data-model-iter.c: behave correctly when the data model emits the "reset" signal * libgda/gda-data-select.[ch]: - implemented in place re-running the SELECT statement when on of the SELECT's parameters changes (this feature is optional, use the "auto-reset" property to activate it), for bug #552708 - other corrections * libgda/gda-data-model-query.[ch]: removed now redundant object * tests/data-models/: removed the check_model_query test and added test to check_pmodel * libgda/gda-data-proxy.c: * libgda/libgda.h.in: updates due to the removal of the GdaDataModelQuery object * libgda/gda-data-proxy.c: free'd memory access bug corrected in commit_row_modif() * WixInstaller/make-zip-exe.sh: updated the generated archive's name * libgda/providers-support/gda-pstmt.c * doc/C: documentation updates and improvements 2008-09-20 Vivien Malerba * providers/postgres/gda-postgres-meta.c: * libgda/gda-meta-struct.c: bugs fixed * tools/Makefile.am: also distribute the gda-sql.ico file * tools/gda-sql.c: * tools/command-exec.[ch]: - correctly handle non threading environment - removed the non implemented "dq" internal command (use "qa" instead) - correctly handle the "-C" command line flag - when commands are executed from a file ("-f" argument), then don't quit when finished executing the commands. * libgda/sqlite/gda-sqlite-meta.c: corrected a bug in the way "PRAGMA table_info" was used to list all the columns of a table when the schema was not "main". * libgda/sqlite/sqlite-src/sqlite3.c: * libgda/sqlite/sqlite-src/PragmasPatch: reimplemented the "proc_list" PRAGMA to make it work with the current version of SQLite * doc/C: vastly improved the "gda-sql" console tool manual 2008-09-18 Vivien Malerba * libgda/gda-data-model.c: make gda_data_model_dump() work whith data models which can only be accessed with a cursor * libgda/gda-meta-store.c: handle the 'autoinc' column attribute, and bug fixes * libgda/sqlite/gda-sqlite-ddl.c: correctly handle the "INTEGER PRIMARY KEY AUTOINCREMENT" * doc/C: better documentation for GdaDataProxy * tools/gda-sql.c: - allow to pass a file name on the command line to open as an SQLite or MDB file - reorganized "query buffer" commands: - \e [FILE]: Edit the query buffer (or file) with external editor - \g [QUERY_BUFFER_NAME]: Execute contents of query buffer, or named query buffer - \qa: List all saved query buffers in dictionary - \qd QUERY_BUFFER_NAME: Delete query buffer from dictionary - \ql QUERY_BUFFER_NAME: Load query buffer from dictionary - \qp: Show the contents of the query buffer - \qr [FILE]: Reset the query buffer (fill buffer with contents of file) - \qs QUERY_BUFFER_NAME: Save query buffer to dictionary - \qw FILE: Write query buffer to file * tests/data-models/check_pmodel.c: more testing 2008-09-18 Bas Driessen * doc/C/gettingstarted.xml: correction example code. 2008-09-16 Vivien Malerba * configure.in: set version to 3.99.5 Released 3.99.4