2006-09-03 Vivien Malerba Released 1.9.103 (AKA 2.0 Beta1). 2006-09-03 Vivien Malerba * providers/mdb/*: Improved the MDB provider * doc/C: documentation update * allfiles: small bug fixes 2006-09-03 Bas Driessen * providers/mysql/gda-mysql-ddl.c: * providers/mysql/mysql_specs_add_column.xml.in: * providers/mysql/mysql_specs_create_table.xml.in: added COLUMN_SIZE and COLUMN_SCALE paths for create table and add column operation for mysql and surrounded column names with back quote (`) to allow for reserved names as column name. * providers/sqlite/gda-sqlite-ddl.c: * providers/sqlite/sqlite_specs_add_column.xml.in: * providers/sqlite/sqlite_specs_create_table.xml.in: added COLUMN_SIZE and COLUMN_SCALE paths for create table and add column operation for sqlite. * providers/postgres/postgres_specs_add_column.xml.in: removed default values. * providers/postgres/postgres_specs_create_table.xml.in: added missing gda_value tags for COLUMN_SIZE and COLUMN_SCALE. 2006-09-02 Bas Driessen * providers/postgres/gda-postgres-ddl.c: * providers/postgres/postgres_specs_add_column.xml.in: * providers/postgres/postgres_specs_create_table.xml.in: * doc/C/server-operation.xml: added COLUMN_SIZE and COLUMN_SCALE paths for create table and add column operation for postgres and surrounded column names with double quote (") to allow for reserved names as column name. 2006-08-29 Vivien Malerba * libgda/gda-dict.[ch]: added gda_dict_object_{assume,declare}_as() * all files: s/gda_server_provider_get_data_handler_gda/ gda_server_provider_get_data_handler_gtype/g * providers/mysql/gda-mysql-provider.c: * providers/postgres/gda-postgres-provider.c: * providers/sqlite/gda-sqlite-provider.c: implemented the get_def_dbms_type() virtual method 2006-08-28 Vivien Malerba * providers/sqlite/gda-sqlite-provider.c: * providers/mysql/gda-mysql-provider.c: * providers/postgres/gda-postgres-provider.c: accept "DATABASE" instead of "DB_NAME" and "URI" instead of "DB_DIR" and "DB_NAME" in connection strings, and show a warning * libgda/gda-threader.c: use a timeout instead of an idle function for shorter notification time * libgda/gda-server-operation.[ch]: * providers/sqlite: * providers/mysql: * providers/postgres: Added support to rename a table and add a column to a table * libgda/gda-dict.[ch]: replaced the "*_added", "*_removed" and "*_updated" signals with "object_added", "object_removed" and "object_updated" signals (impacts other files as well). * libgda/gda-dict-private.h: * libgda/gda-dict-reg-*.[ch]: * libgda/gda-dict.[ch]: make that object reference types, functions, aggregates and queries in a generic way to reduce code and enable future extensions without API/ABI breakage * libgda/gda-dict-database.[ch]: code cleanups * libgda/gda-dict.c: * libgda/gda-dict-database.c: allow to update only some kind of meta-data with the DBMS * other files: changes required by the above changes, and minor bug fixes. 2006-08-20 Vivien Malerba * providers/sqlite/*.xml.in: new files for server operation * providers/sqlite/gda-sqlite-ddl.[ch]: new files which implement the SQL for server operations * doc/C/: documentation update * s/gda_connection_supports/gda_connection_supports_feature/ * s/gda_server_provider_supports/gda_server_provider_supports_feature/ * libgda/gda-enums.h: * libgda/gda-dict-database.[hc]: added an option to update the information from the database only on a given table. * providers/sqlite/gda-sqlite-provider.c: * providers/mysql/gda-mysql-provider.c: * providers/postgres/gda-postgres-provider.c: corrected the tables schema listing for when only one table was requested. 2006-08-11 Vivien Malerba * libgda/libgda-array.dtd: * libgda/gda-data-model.c: * libgda/gda-util.c: individual values in XML representation of arrays can now be stored in nodes (rather than in nodes) where the column id for the value can be specified * libgda/gda-data-proxy.c: bug fixed when removing sevaral rows at once: the change signals were not correctly emitted. * providers/postgres: * providers/mysql: added the gda-*-ddl.[ch] files which actually render the GdaServerOperation objects into SQL. * libgda/gda-server-provider.[ch]: removed gda_server_provider_create_table(), gda_server_provider_drop_table(), gda_server_provider_create_index() and gda_server_provider_drop_index() as this functionnality is now done through the GdaServerOperation object * providers/*/gda-*-provider.c: removed reference to the create_table(), drop_table(), create_index() and drop_index() GdaServerProvider's virtual functions as they don't exist anymore * libgda/gda-connection.[ch]: removed gda_connection_create_table(), gda_connection_drop_table(), gda_connection_create_index() and gda_connection_drop_index() as this functionnality is now done through the GdaServerOperation object * libgda/gda-client.[ch]: replaced gda_client_get_provider_specs() with gda_client_prepare_create_database() and gda_client_prepare_drop_database() and replaced gda_client_create_database() with gda_client_perform_create_database() and gda_client_drop_database() with gda_client_perform_drop_database() * libgda/gda-server-provider.[ch]: removed gda_server_provider_create_database_cnc() and gda_server_provider_drop_database_cnc() as this functionnality is now done through the GdaServerOperation object * testing/gda-diagnose.c: updated the GdaServerProvider classes test with new methods 2006-07-29 Vivien Malerba * providers/mysql/gda-mysql-recordset.c: applied patch from Carlos Savoretti 2006-07-29 Vivien Malerba * libgda/libgda-server-operation.dtd: added the possibility specify a value for a parameter * providers/postgres/gda-postgres-ddl.[ch]: new files which implement DDL queries for the PostgreSQL provider * providers/postgres/postgres_specs_*: updated DDL queries spec files * po/POTFILES.in: added missing files to translate * doc/C: documentation updates * libgda/gda-data-model-array.[ch]: * libgda/gda-data-model-hash.c: * libgda/gda-data-proxy.c: * libgda/gda-server-operation.[ch]: * libgda/gda-server-provider.c: various bug fixes and updates 2006-07-21 Vivien Malerba * libgda/gda-query-target.c * libgda/gda-query-field-field.c: add double quotes around the SQL if name starts with a number * doc/C: added documentation for the GdaServerOperation object * providers/postgres/gda-postgres-provider.c: more work on SQL rendering for CREATE TABLE query * libgda/gda-server-operation.c: major improvements * various small improvements 2006-07-14 Vivien Malerba * doc/C/*: docs update * libgda/gda-server-operation.[ch]: almost fully implemented GdaServerOperation object * libgda/*.dtd: cleanups * providers/*/*.xml.in: changes applied because of the DTD changes * testing/gda-test-server-operation.c: new test * various files: minor bug fixes an improvements 2006-07-04 Murray Cumming * libgda/gda-server-operation.h: Commented out gda_server_operation_get_node_type(), gda_server_operation_get_node_plist)_, gda_server_operation_get_node_param(), gda_server_operation_get_node_datamodel(), and gda_server_operation_get_node_seq_size(), because they are not implemented. 2006-06-29 Murray Cumming * libgda/gda-init.c: gda_main_run(): Documentation: Remove mention of Bonobo because libgda does not use it anymore. * providers/sybase/main.c: Do not include the bonobo i18n header, because we do not depend on bonobo. I guess nobody is building this backend. 2006-06-17 Gintautas Miliauskas * configure.in: Added "lt" to ALL_LINGUAS. 2006-05-24 Vivien Malerba * libgda/gda-data-proxy.c: fixed a bug which could make the GdaDataProxy object show more data than there actually was in the displayed data model when the number of rows of that data model is only known when all the model has been displayed. * libgda/gda-data-model.c: improved gda_data_model_move_iter_at_row_default(), gda_data_model_move_iter_next_default() and gda_data_model_move_iter_prev_default() to include default value handling. * libgda/gda-data-proxy.c: removed the non necessary custom iter_at_row() virtual method * providers/mysql/mysql_specs_create_db.xml.in: * providers/postgres/postgres_specs_create_db.xml.in: added translations support * providers/postgres/postgres_specs_create_index.xml.in: * providers/postgres/postgres_specs_create_table.xml.in: * providers/postgres/postgres_specs_drop_index.xml.in: * providers/postgres/postgres_specs_drop_table.xml.in: new spec files for provider operations * libgda/gda-server-operation.[ch]: new object * libgda/libgda-paramlist.dtd: * libgda/libgda-server-operation.dtd: new DTD files for XML based specifications * doc/C/query0*.svg: * doc/C/query0*.png: new illustration files * doc/C/*: documentation update * testing/gda-inspect-dict-file.c: bug fixed * functions renaming for API coherence (gda_entity_field_get_data_type => gda_entity_field_get_dict_type, gda_dict_field_set_data_type => gda_dict_field_set_dict_type, gda_dict_get_data_type_by_name => gda_dict_get_dict_type_by_name, gda_dict_get_data_type_by_xml_id => gda_dict_get_dict_type_by_xml_id, gda_dict_get_data_types => gda_dict_get_dict_types, gda_query_field_value_get_value_type => gda_query_field_value_get_gda_type) * bug fixes 2006-05-21 Murray Cumming * libgda/gda-value.c: (set_from_string): Move this up to before it is used, to avoid an error caused by the clash with the implicit declaration. 2006-05-16 Vivien Malerba * libgda/gda-dict.c: set only when necessary to avoid messages such as "validity error : Validation failed: no DTD found !" * providers/sqlite/gda-sqlite-provider.c: don't return a data handler for G_TYPE_DATE and GDA_TYPE_TIMESTAMP as SQLite does not impose a known format for dates (there is no date data type) * libgda/gda-query.c: display a warning when adding a field which gda type is not handled by the provider associated to the dictionary's connection. * libgda/gda-value.c: * libgda/gda-data-handler.c: improved documentation regarding the usage of the user's locale when converting a value to a string * libgda/gda-entity-field.c: * libgda/handlers/gda-handler-string.c: bug fixed * 2006-05-12 Vivien Malerba * libgda/sql-delimiter/*: the delimiter now returns a list of GdaDelimiterStatement structures, one for each identified SQL statement (SQL statements are separated by semicolon. * libgda/gda-query.c: modifications to handle the changes in the SQL delimiter * libgda/sql-delimiter/gda-sql-delimiter.[ch]: added gda_delimiter_concat_list() and gda_delimiter_split_sql() * providers/firebird/gda-firebird-provider.c: * providers/freetds/gda-freetds-provider.c: * providers/ibmdb2/gda-ibmdb2-provider.c: * providers/mdb/gda-mdb-provider.c: * providers/msql/gda-msql-provider.c: * providers/mysql/gda-mysql-provider.c: * providers/oracle/gda-oracle-provider.c: * providers/postgres/gda-postgres-provider.c: * providers/sybase/gda-sybase-provider.c: use gda_delimiter_split_sql instead of g_strsplit to delimit SQL statements which fixes bug #131040 * testing/gda-diagnose: really take into account username and password (passed as command line arguments) when opening the connection 2006-05-10 Vivien Malerba * libgda/gda-dict-field.c: when a new data type is created, correctly sets its description * testing/gda-author-dict-file.c: allow the specification of connection which is not a DSN * libgda/gda-query-parsing.c: bug fixed * libgda/gda-value.[ch]: added gda_value_take_binary() * libgda/gda-value.c: bug fixes * libgda/gda-dict-field.c: minor bug fixed when a gda data type does not exist 2006-05-09 Murray Cumming * libgda/gda-parameter-list.c: (gda_parameter_list_merge): Rename from gda_parameter_list_merge_paramlist_params(), because this is what is in the header, and gda_parameter_list_merge() would be undefined otherwise. I do wonder if this is meant to be a public function. 2006-05-09 Murray Cumming * libgda/gda-value.c: (gda_value_is_null), (gda_value_is_number), (gda_value_copy), (gda_value_get_binary), (gda_value_get_blob), (gda_value_get_geometric_point), (gda_value_get_list), (gda_value_get_numeric), (gda_value_get_short), (gda_value_get_ushort), (gda_value_get_time), (gda_value_get_timestamp), (gda_value_stringify), (gda_value_compare), (gda_value_compare_ext), (to_string), (gda_value_to_xml): * libgda/gda-value.h: Use the const keyword for input parameters that will not be changed the function. 2006-05-08 Vivien Malerba * libgda/gda-query.c: gda_query_execute(): show SQL if query if GDA_DEBUG is set * libgda/gda-query-target.c: * libgda/gda-query-field-field.c: surround rendered SQL with double quotes if necessary * libgda/gda-data-model-query.c: code cleanup 2006-05-08 Vivien Malerba * Individual values are now strictly GValue, much of the GdaValue API has been removed. * libgda/graph/gda-graph-item.c: corrected a bug where locale was used in XML loading and saving. * doc/C/Makefile.am: avoid to override HTML_DIR, closes bug #329930 * libgda/gda-server-provider-extra.c: applied patch from Chris Shoemaker, closing bug #337986 * libgda/handlers/gda-handler-time.c: applied patch from Chris Shoemaker, closing bug #338081 * applied patch from Thierry Moisan, closed bug #328418 * libgda/gda-dict.h: removed GDA_DICT_PROPOSED_FILE from the error codes enum * libgda/gda-connection.[ch]: added domain and code error to returned errors, fixes bug #319948 * libgda/gda-connection.c: added properties to use during construction, for bug #321724 * libgda/gda-connection.[ch]: removed gda_connection_set_client() * libgda/gda-client.[ch]: added username and password arguments to gda_client_open_connection_from_string() * testing/gda-test-connection.c: added a tool to test connections * libgda/gda-client.c: don't create any fake DSN when opening a connection from a string, for bug #332556 2006-05-08 Murray Cumming, * libgda/gda-connection.c: (gda_connection_class_init): Correct the registration of the error and dsn_changed signals, correcting the parameter types and the marshallers. 2006-05-05 Rodrigo Moya * configure.in: removed newlines from ALL_LINGUAS. 2006-04-24 Vivien Malerba * libgda/gda-data-model-query.c: applied a patch from Chris to fix a bug which would prevent parameterized data-modification queries to work when the SELECT query isn't parameterized. * libgda/gda-parameter.c: * libgda/gda-parameter-list.c: * libgda/gda-query-field-field.c: * libgda/gda-query-field-value.c: s/handler_plugin/entry_plugin/g * providers/mysql/gda-mysql-provider.c: take into account the version of the MySQL server to which the connection is opened and not the version of the MySQL client libraries at compile time. * providers/mysql/Makefile.am: define GDA_PACKAGE_VERSION as PACKAGE_VERSION is re-defined by MySQL * providers/oracle/gda-oracle-recordset.c: potential buffer overflow correction * providers/oracle/gda-oracle-provider.c: started improvements on the schemas * doc/C/query.xml: various improvements 2006-04-14 Vivien Malerba * libgda-gda-dict.[ch]: added gda_dict_get_handler() * libgda/gda-data-model-query.c: documentation improvements * libgda/gda-server-provider.c: improvements in gda_server_provider_string_to_value() * doc/C/query.xml: better explanations for query parameter's syntax 2006-04-09 Vivien Malerba * providers/postgres/gda-postgres-provider.c: applied patch from Chris Shoemaker to fix bug #337497 2006-04-04 Vivien Malerba * libgda/gda-parameter-list.[ch]: added gda_parameter_list_add_param_from_string() to quickly add a parameter to a GdaParameterList object * libgda/gda-entity.[ch]: removed gda_entity_get_parameters() and gda_entity_get_param_list() * libgda/gda-query.[ch]: added gda_query_get_parameters() and gda_query_get_parameters_boxed() * libgda/gda-query.[ch]: added gda_query_execute() * libgda/gda-connection.[ch]: removed gda_connection_reset() which was never implemented * libgda/gda-connection.[ch]: renamed gda_connection_execute_command() to gda_connection_execute_command_l() and gda_connection_execute_single_command() to gda_connection_execute_command() because the names were leading to misunderstandings * libgda/gda-connection.[ch]: removed gda_connection_execute_non_query() which is quite a nonsense * libgda/gda-server-provider.[ch]: removed the reset() virtual method which was never implemented * libgda/handlers/gda-handler-time.c: fixed a bug in string parsing * libgda/testing/gda-test-models.c: improvements using GdaDataModelImport object * libgda/gda-data-access-wrapper.c: added gda_data_access_wrapper_row_exists() * libgda/gda-parameter-list.[ch]: added gda_parameter_list_add_param_from_value() * libgda/gda-data-model-import.c: bug fixed in CSV parsing * libgda/gda-data-proxy.c: correctly handle data models for which the total number of rows is not known * compilation warnings removed * documentation corrections.