2.99.3: 2007-01-23 Murray Cumming * po/POTFILES.in: Attempted to update this, but intoolize-update says that the files do not exist, during distcheck. 2007-01-23 Murray Cumming * doc/C/Makefile.am: Add limitations.sgml to EXTRA_DIST, to partly fix the distcheck. But I'm still getting intltool-update errors from POTFILES.in about files that it says do not exists, but which really do seem to exist. 2007-01-23 Murray Cumming * configure.in: Removed check-news from the AM_INIT_AUTOMAKE() call, because this makes it impossible to test distcheck without actually changing NEWS, so distcheck is often broken. At the moment I get this error, for instance: cd ../../../doc/C/html && gtkdoc-mkhtml libgda ../libgda-docs.sgml warning: failed to load external entity "../limitations.xml" ../libgda-docs.sgml:408: parser error : Failure to process entity limitations &limitations; ^ ../libgda-docs.sgml:408: parser error : Entity 'limitations' not defined &limitations; 2007-01-23 Murray Cumming * libgda/gda-query-field-agg.c: (gda_query_field_agg_get_arg): Rename from gda_query_field_agg_get_args(), to avoid an undefined symbol. 2007-01-23 Murray Cumming * configure.in: Require gamin (fam) 0.1.8, because 0.1.7 has an incorrect pkg-config .pc file. This worked before because something else put /include in our CFLAGS. But something has changed and this was breaking the build. Maybe it was the removal of the libxslt dependency. * libgda/Makefile.am: Actually use FAM_CFLAGS, instead of just hoping that something else puts /include in the CFLAGS. 2007-01-20 Vivien Malerba * configure.in: removed unnecessary libxslt dependency, and set minimum GLib version to 2.8.0 as G_TYPE_DATE is required and is not in 2.6.0 * providers/sqlite/sqlite_specs_dsn.xml.in: changed internal order of items * providers/mysql/gda-mysql-provider.c: minor correction 2007-01-17 Vivien Malerba * libgda/gda-config.c: if GDA_DSN_LIST_IN_MEMORY env. variable is specified, then the DSN list modifications won't be written in any file (and the initial DSN list is loaded from the filename contained in that env. variable) * providers/postgres/gda-postgres-provider.c: * libgda/gda-data-model.c: * libgda/gda-data-model-row.c: bug fixes * libgda/gda-parameter.c: * libgda/gda-parameter-util.h: added a gda_parameter_get_alphanum_name() to get a version of a GdaParameter's name where all non [0-9A-Za-z] chars are replaced with '_' * libgda/gda-query-field-value.c: can now render parameters in SQL with the :param_name syntax (used by Oracle) * libgda/gda-blob-op.[hc]: added gda_blob_op_write_all() to write a complete BLOB at once * providers/oracle/: improved BLOB handling * gda-sharp/AssemblyInfo.cs.in: corrected variable name to GDA_ABI_*_VERSION 2007-01-17 Esteban Sanchez * configure.in: * libgda-3.0.pc.in: * libgda/Makefile.am: * libgda/graph/Makefile.am: * libgda/handlers/Makefile.am: * libgda/sql-delimiter/Makefile.am: * libgda/sql-transaction/Makefile.am: * libsql/Makefile.am: * providers/bdb/Makefile.am: * providers/firebird/Makefile.am: * providers/freetds/Makefile.am: * providers/ibmdb2/Makefile.am: * providers/ldap/Makefile.am: * providers/mdb/Makefile.am: * providers/msql/Makefile.am: * providers/mysql/Makefile.am: * providers/odbc/Makefile.am: * providers/oracle/Makefile.am: * providers/postgres/Makefile.am: * providers/sqlite/Makefile.am: * providers/sybase/Makefile.am: * providers/xbase/Makefile.am: * report/libgda-report/Makefile.am: Rename GDA_*_VERSION to GDA_ABI_*_VERSION, and do not use the tarball release version to calculate it. This removes the risk of us breaking ABI with a 3.2 version that is meant to just add API. 2007-01-14 Vivien Malerba * libgda/gda-connection-private.h: * libgda/gda-connection.c: added a private function to change the state of the current transaction, to be used by providers' implementations * providers/postgres/gda-postgres-blob-op.c: * providers/postgres/gda-postgres-provider.c: * providers/postgres/utils.c: corrected an error which made the current transaction fail when trying to delete a nonexisting blob Oid 2007-01-12 Armin Burgmeier * libgda/gda-query.c: Declare the object explicitely as GDA_TYPE_QUERY in constructor to allow subclassing GdaQuery. Also removed object declaration from gda_dict_query_copy() because it is already done in constructor. 2007-01-12 Vivien Malerba * providers/mysql/gda-mysql-provider.c: fixed a bug related to FK reporting in the CONSTRAINTS schema report, added the "bit" data type as a synonym to "tinyint", removed and GDA_TYPE_BLOB reference as MySQL does not support blobs (it supports binary data) * providers/postgres/gda-postgres-provider.c: map the "oid" data type to G_TYPE_ULONG and better detect the GType associated to custom data types * testing/gda-test-blob.c * testing/tests_data/SQL_parsing_tests.xml * libgda/sql-delimiter/parser.y * libgda/sql-delimiter/gda-sql-delimiter.c * libgda/sql-delimiter/gda-test-delimiter.c * libgda/sql-delimiter/lexer.l * libgda/gda-data-model-query.c * libgda/gda-query-field-value.c * libgda/gda-server-provider-extra.c * libsql/parser.y * libsql/lexer.l: changed the syntax to insert parameters in SQL queries to have simpler parsers and an easier to read syntax, and bug fixes * doc/C: improved documentation about binary and blob data types * libgda/gda-query-field-field.c: made the "field_name" property readable * libgda/gda-dict-field.c: * libgda/gda-graphviz.c: * libgda/gda-init.c: * libgda/gda-query.c: * libgda/gda-query-condition.c: * libgda/gda-query-field-agg.c: * libgda/gda-query-field-all.c: * libgda/gda-query-field-field.c: * libgda/gda-query-field-func.c: * libgda/gda-query-field-value.c: * libgda/gda-query-target.c: * libgda/gda-renderer.c: * libgda/gda-renderer.h: * libgda/gda-server-provider.c: * libgda/gda-server-provider-extra.c: * providers/postgres/gda-postgres-provider.c: * testing/gda-test-model-query.c: * testing/gda-test-sql.c: * tools/gda-inspect-dict-file.c: changed the signature of the gda_renderer_render_as_sql() method to allow to return a list of GdaParameter objects actually used to do the rendering * libgda/gda-server-provide.[ch]: added the escape_string() and unescape_string() virtual methods * libgda/handlers/gda-handler-string.[ch]: take into account the new virtual methods for the providers when escaping and unescaping strings * libgda/handlers/gda-handler-bin.[ch]: code cleanup * providers/postgres/gda-postgres-handler-bin.[ch]: new object to handle GdaBinary representations for the postgres provider * all files: s/gda_default_escape_chars/gda_default_escape_string/ and s/gda_default_unescape_chars/gda_default_unescape_string/ * providers/sqlite/sqlite-src: use Sqlite 3.3.10 sources * providers/postgres/gda-postgres-provider.c: * providers/postgres/gda-postgres-recordset.c: * providers/postgres/gda-postgres-blob-op.c: * providers/postgres/util.c: code cleanups un event reporting 2007-01-12 Murray Cumming * libgda/gda-dict-database.c: (gda_dict_database_class_init): * libgda/gda-dict-function.c: (gda_dict_function_class_init): * libgda/gda-dict-type.c: (gda_dict_type_class_init): * libgda/gda-graphviz.c: (gda_graphviz_class_init): Remove nonsense unused PROP ("prop") properties with #if 0. I would prefer to delete the code, but I guess someone found these placeholders useful once. 2007-01-11 Murray Cumming * libgda/gda-blob-op.c: Add a FIXME comment to documentation that advises use of gda_connection_create_blob(), which no longer exists. * libgda/gda-server-provider.h: Removed declarations of gda_server_provider_create_blob() and gda_server_provider_fetch_blob_by_id() because the functions (implementations) no longer exist. 2007-01-07 Vivien Malerba * libgda/gda-query.c: bug fixed in XML saving code where a "(xmlChar*)" was not a cast but in the string. * doc/C: adjusted the svn:ignore property 2007-01-07 Leonardo Boshell * libgda/gda-connection-event.c: * libgda/gda-data-model-hash.c: * libgda/gda-data-model-array.c: * libgda/gda-query.c: * libgda/gda-dict.c: Made *_new functions only call g_object_new by moving some code to *_init and introducing properties that are set upon construction, for bug #321724 2007-01-07 Vivien Malerba * libgda/sql-delimiter/*: don't remove the ':' char from ':[A-Za-z0-9_-]+' identifiers, and allow to have parameter definitions with values, instead of only recognising ##[...] parameters definitions * tools/: * doc/C/tmpl: * gda-sharp: * report/libgda-report: * providers/ldap: * providers/firebird: * providers/sybase: * providers/bdb: * providers/freetds: * providers/ibmdb2: * providers/sqlite: * providers/sqlite/sqlite-src: * providers/mdb: * providers/xbase: * providers/mysql: * providers/oracle: * providers/postgres: * providers/odbc: * providers/msql: * testing: * po: * libgda: * libsql: * win32: adjusted the svn:ignore property * libgda/gda-connection.[ch]: * libgda/gda-server-provider-extra.[ch]: * providers/*/gda-*-provider.c: * libgda/gda-value.[ch]: * libgda/gda-blob-op.[ch]: changed the way blobs are handled to have a coherent and universal API to use blobs. * providers/sqlite/sqlite-src: updated to 3.3.9 * providers/oracle: major Oracle provider improvements, now only missing the CONSTRAINTS schema and the new blobs support * providers/postgres: added support for the new blobs API * testing/gda-test-blob.c: new test progrem for blobs * other files: minor corrections 2006-12-28 Leonardo Boshell * providers/freetds/gda-freetds-provider.c: (gda_freetds_get_procedures), (gda_freetds_provider_get_types), (gda_freetds_get_fields): s/gda_column_[gs]et_gda_type/gda_column_[gs]et_g_type/. (gda_freetds_provider_get_types): Remove unused variable 'valuetmp'. (gda_freetds_provider_get_schema): Actually use gda_freetds_get_procedures(). (gda_freetds_provider_tds_handle_message): Remove unused variable 'tds_cnc'. * providers/freetds/gda-freetds-recordset.c: (gda_freetds_recordset_get_row): Remove the 'const' qualifier from the return signature to properly match the API from gda-data-model-row.h. (gda_freetds_get_current_row): Declare 'val' as 'guchar *' to hold the value we get from res->current_row without casting. * providers/freetds/gda-freetds-types.h: * providers/freetds/gda-freetds-types.c: (gda_freetds_get_value_type): Drop the 'const' qualifier from the return signature since it's not a reference. (gda_freetds_set_gdavalue): Changed the type of the 'val' parameter from 'gchar *' to 'guchar *'. Fix warnings regarding signedness. 2006-12-28 Murray Cumming * providers/postgres/gda-postgres-blob.c: (gda_postgres_blob_get_sql_id): * providers/postgres/gda-postgres-provider.c: (gda_postgres_provider_get_data_handler): * providers/postgres/gda-postgres-recordset.c: (gda_postgres_recordset_get_row), (gda_postgres_recordset_remove_row), (gda_postgres_recordset_get_value_at), (gda_postgres_recordset_describe_column), (gda_postgres_recordset_new): * providers/postgres/utils.c: (gda_postgres_set_value): Fix warnings by adding casts and removing unnused variables. 2006-12-28 Murray Cumming * libgda/gda-config.c: * libgda/gda-connection.c: * libgda/gda-data-model-import.c: * libgda/gda-data-model-query.c: * libgda/gda-data-model.c: * libgda/gda-data-proxy.c: * libgda/gda-dict-aggregate.c: * libgda/gda-dict-constraint.c: * libgda/gda-dict-database.c: * libgda/gda-dict-field.c * libgda/gda-dict-function.c: * libgda/gda-dict-reg-aggregates.c: * libgda/gda-dict-reg-functions.c: * libgda/gda-dict-reg-queries.c: * libgda/gda-dict-reg-types.c: * libgda/gda-dict-table.c: * libgda/gda-dict-type.c: * libgda/gda-dict.c: * libgda/gda-init.c: * libgda/gda-parameter-list.c: * libgda/gda-query-condition.c: * libgda/gda-query-field-agg.c: * libgda/gda-query-field-all.c: * libgda/gda-query-field-field.c: * libgda/gda-query-field-func.c: * libgda/gda-query-field-value.c: * libgda/gda-query-field.c: * libgda/gda-query-join.c: * libgda/gda-query-target.c: * libgda/gda-query.c: * libgda/gda-row.c: * libgda/gda-server-operation.c: * libgda/gda-util.c: * libgda/gda-value.c: * libgda/graph/gda-dict-reg-graphs.c: * libgda/graph/gda-graph-item.c: * libgda/graph/gda-graph.c: * libgda/sql-delimiter/gda-test-delimiter.c: * libsql/mem.h: * libsql/sql_parser.c: * testing/gda-test-model-query.c: * testing/gda-test-models.c: * testing/gda-test-sql.c: * testing/html.c: * tools/gda-config-tool.c: * tools/gda-diagnose.c: * tools/html.c: Many fixes for -Wall -Werror warnings, mostly xmlChar* <-> gchar* casts, and some unused variables and implicitly declared functions. 2006-12-28 Murray Cumming * libgda/gda-dict-field.c: (gda_dict_field_load_from_xml): * libgda/gda-dict.h: Add a note about the current need to include libgda/gda-dict-reg-aggregates.h and libgda/gda-dict-reg-functions.h when using this header. * libgda/gda-object-ref.c: * libgda/gda-query-parsing.c: Include the extra headers to avoid integer-to-pointer warnings caused by implicit function declarations. * libgda/gda-util.c: In the isbase64 macro, do not check that the uchar is less than 256 because this causes a compiler warning about this always being true. * libgda/sql-delimiter/lexer.l: * libgda/sql-transaction/lexer.l: Comment-out the #warning lines. * libgda/gda-data-model-array.c: (gda_data_model_array_finalize), (gda_data_model_array_clear): * libgda/gda-query-condition.c: (gda_query_condition_new_copy): * libgda/graph/gda-graph-item.c: (gda_graph_item_set_property): Use cast macros to avoid compiler warnings. I think this fixes all the warnings apart from the ones in the providers. 2006-12-28 Murray Cumming * libsql/lexer.l: * libsql/mem.c: (memsql_strdup_printf_raw), (memsql_alloc_raw), (memsql_calloc_raw), (memsql_realloc_raw), (memsql_strappend_raw), (memsql_strappend_free_raw): * libsql/mem.h: * libsql/sql_parser.c: (sqlerror): * libsql/sql_parser.h: * libsql/sql_tree.c: (sql_field_build_function), (sql_table_build), (sql_table_build_function): * libsql/sql_tree.h: Some const corrections to allow building with CFLAGS=-Werror. Note that sql_build_function() still takes non-const char*, because that is later freed by sql_destroy_table(), but I do not think that this is expected everywhere, so there may be double frees. 2006-12-28 Leonardo Boshell * configure.in: Set FREETDS_VERSION_MAJOR and FREETDS_VERSION_MINOR instead of HAVE_FREETDS_VER*. * providers/freetds/gda-freetds-defs.h: Define FREETDS_VERSION and use that macro instead of HAVE_FREETDS_VER*. * providers/freetds/gda-freetds-provider.c: Use FREETDS_VERSION. FreeTDS 0.64 compatibility. (gda_freetds_get_procedures): New. Verify that column #1 has the right GType. (gda_freetds_provider_get_types): Verify that columns have the right GType. (gda_freetds_provider_get_schema): Use gda_freetds_get_procedures(). (gda_freetds_execute_cmd): Check tds_cnc->tds->res_info before tds_cnc->tds->res_info->rows_exist. (gda_freetds_get_fields): s/gda_parameter_list_find/gda_parameter_list_find_param/. Verify that all columns have the right GType. (gda_freetds_provider_tds_handle_err_msg), (gda_freetds_provider_tds_handle_info_msg): Added 'const' to the first parameter, as per the current FreeTDS API. (gda_freetds_provider_begin_transaction): Fixed the signature of the 'level' parameter. * providers/freetds/gda-freetds-provider.h: Use FREETDS_VERSION. * providers/freetds/gda-freetds-recordset.c: Use FREETDS_VERSION. FreeTDS 0.64 compatibility. * providers/freetds/gda-freetds-types.c: Use FREETDS_VERSION. (gda_freetds_set_gdavalue): Initialise 'field' with g_value_init() before calling g_value_set_*() on it. When handling strings, make sure the string is at most col->column_cur_size characters long. Cast to the right type when handling SYBVARBINARY values. * providers/freetds/gda-tds-schemas.h: Remove ambiguity from SQL commands. 2006-12-27 Murray Cumming * libgda/gda-query.c: (render_sql_insert): Use g_string_append() instead of g_string_append_printf() with only 2 parameters, to avoid runtime memory corruption. Patch from Chris Shoemaker in bug #341061. 2006-12-27 Murray Cumming * libgda/gda-quark-list.c: (gda_quark_list_add_from_string): Prevent a crash when the connection string has a final ; character. Bug #317831 from Andrea Zagli. 2006-12-27 Murray Cumming * providers/mysql/mysql_specs_create_db.xml.in: * providers/mysql/mysql_specs_create_table.xml.in: * providers/mysql/mysql_specs_drop_db.xml.in: * providers/postgres/postgres_specs_create_table.xml.in: * providers/sqlite/sqlite-src/os.h: * providers/sqlite/sqlite_specs_create_index.xml.in: * providers/sqlite/sqlite_specs_create_table.xml.in: More spelling and grammar fixes from Clytie Siddall in bug #352122. 2006-12-27 Murray Cumming * libgda/gda-data-model-import.c: (gda_data_model_import_set_property): Replace use of deprecated sys_errlist() with strerror(). Patch from Joseph Sacco in bug #353729. 2006-12-27 Murray Cumming * libgda/gda-connection.c: * libgda/gda-data-model.c: (gda_data_model_import_from_model): * providers/firebird/firebird_specs_dsn.xml.in: * providers/freetds/freetds_specs_dsn.xml.in: * providers/ldap/ldap_specs_dsn.xml.in: * providers/mdb/mdb_specs_dsn.xml.in: * providers/msql/msql_specs_dsn.xml.in: * providers/mysql/mysql_specs_create_db.xml.in: * providers/mysql/mysql_specs_drop_db.xml.in: * providers/mysql/mysql_specs_dsn.xml.in: * providers/oracle/oracle_specs_dsn.xml.in: * providers/postgres/postgres_specs_create_db.xml.in: * providers/postgres/postgres_specs_drop_db.xml.in: * providers/postgres/postgres_specs_dsn.xml.in: * providers/sybase/sybase_specs_dsn.xml.in: * providers/xbase/xbase_specs_dsn.xml.in: Correct spellings and grammar in translatable strings. Suggestions by Clytie Siddall in bug #352122. 2006-12-27 Murray Cumming * Makefile.am: * configure.in: * libgda-3.0.pc.in: * libgda/Makefile.am: * libgda/graph/Makefile.am: * libgda/handlers/Makefile.am: * libgda/sql-delimiter/Makefile.am: * libgda/sql-transaction/Makefile.am: * libsql/Makefile.am: - Rename libsqltransaction.la to libgda_sql_transaction-3.0.la. Add it to libgda-3.0.pc.in. Build it and libgda_sql_delimiter-3.0 before libgda-3.0, since the former are not interdependent with the latter. - Rename libgdasql.la to libgdasql-3.0.la. Add it to libgda-3.0.pc.in. * providers/bdb/Makefile.am: * providers/firebird/Makefile.am: * providers/freetds/Makefile.am: * providers/freetds/gda-freetds-provider.c: (gda_freetds_free_connection_data): * providers/ibmdb2/Makefile.am: * providers/ldap/Makefile.am: * providers/mdb/Makefile.am: * providers/mdb/gda-mdb-provider.c: (gda_mdb_provider_execute_sql): - Fix mdb provider for mdbtools-0.6pre1 (which is already required for MDB_WRITABLE). * providers/msql/Makefile.am: * providers/mysql/Makefile.am: * providers/odbc/Makefile.am: * providers/odbc/gda-odbc-provider.c: (get_odbc_databases), (get_odbc_fields_metadata), (get_procedure_rs), (get_odbc_procedures), (get_odbc_tables), (get_odbc_types), (get_odbc_views): - Port odbc provider to 3.0 API (PLEASE VERIFY). * providers/oracle/Makefile.am: * providers/postgres/Makefile.am: * providers/sqlite/Makefile.am: * providers/sybase/Makefile.am: * providers/xbase/Makefile.am: * providers/xbase/gda-xbase-provider.c: (gda_xbase_provider_open_connection): - Fix xbase provider for non-existant provider API (PLEASE VERIFY). - Fix gda-sharp.dll.config on Cygwin (yes, mono and Gtk# do work on Cygwin, but I haven't pushed the patches upstream yet). - Fix provider dependencies (for the Cygwin-supported databases). Patch by yselkowitz in bug #314732. 2006-12-27 Murray Cumming * data/Makefile.am: * libgda/Makefile.am: * providers/bdb/Makefile.am: * providers/firebird/Makefile.am: * providers/freetds/Makefile.am: * providers/ibmdb2/Makefile.am: * providers/ldap/Makefile.am: * providers/mdb/Makefile.am: * providers/msql/Makefile.am: * providers/mysql/Makefile.am: * providers/odbc/Makefile.am: * providers/oracle/Makefile.am: * providers/postgres/Makefile.am: * providers/sqlite/Makefile.am: * providers/sybase/Makefile.am: * providers/xbase/Makefile.am: * report/Makefile.am: * report/libgda-report/Makefile.am: Change the sysconfdir (/etc/) and datadir (/share/) installation directories from libgda to libgda-3.0, to avoid parallel-install conflicts with libgda 1.2. As noticed by yselkowitz in bug #314732. 2006-12-27 Murray Cumming * idl/.cvsignore: * idl/GNOME_Database.idl: * idl/Makefile.am: Removed these from cvs. They are not used, and they make people think that we require or use CORBA. 2006-12-27 Murray Cumming * gda-sharp/gda-sharp.dll.config.in: Refer to correct .so name. Fixes for 64-bit systems: * providers/bdb/libmain.c: Include gda-config.h. * providers/odbc/gda-odbc-provider.c: (gda_odbc_provider_change_database): Cast to (unsigned long) instead of UDWORD. Patch from Hans de Goede in bug #366694. 2006-12-27 Murray Cumming * libgda/sql-delimiter/parser.y: Fix compilation on Darwin (MacOS X), by using the extern keyword. Patch from Min Sik Kim in bug #382933. 2006-12-27 Murray Cumming * libgda/gda-parameter-list.c: Fix compilation on Darwin (MacOS X), by ifdefing the including of sys/types.h. Patch from Min Sik Kim in bug #382936.