2005-03-05 Bas Driessen * libgda/gda-data-model-base.c: * libgda/gda-data-model.c: * libgda/gda-select.c: * libgda/gda-table.[ch]: * libgda/gda-xml-database.c: Cleanup. Be consistent and avoid confusion by using the name "columns" for GdaColumn objects rather than a mix of the old names "fa" and "dmca". 2005-03-03 Álvaro Peña * *: Renamed GdaDataModelColumnIndexAttributes to GdaColumnAttributes 2005-03-03 Álvaro Peña * *: Changed GdaDataModelColumnAttributes name to GdaColumn 2005-02-28 Loic Minier Fixes #168641 * configure.in: don't use builtin copy of gtk-doc macro, use GTK_DOC_CHECK instead. 2005-02-28 Rodrigo Moya Fixes #129153 * report/libgda-report/gda-report-result.h: removed non-existing function from header file. 2005-02-28 Rodrigo Moya * configure.in: changed translation domain. * libgda.pc.in: use libgda-3. 2005-02-28 Rodrigo Moya * providers/*/Makefile.am: install providers to versioned directories. * libgda/Makefile.am: changed LIBGDA_PLUGINDIR to point to versioned directory. Changed to libgda-3. * report/libgda-report/Makefile.am: changed to libgda-report-3. * doc/C/Makefile.am: * report/testing/Makefile.am: * tools/Makefile.am: * testing/Makefile.am: use libgda*-3 libraries. 2005-02-28 Caolan McNamara Fixes #166288 * configure.in: better detection for libdb. 2005-02-28 Caolan McNamara Fixes #166286 * providers/*/Makefile.am: use $libdir instead of $prefix/lib. 2005-02-28 Jorge Bernal "Koke" Fixes 162856 * providers/freetds/libmain.c (plugin_get_connection_params): fixed typo. 2005-02-28 Rodrigo Moya Fixes #160666 * libgda-C.omf.in: removed double // in file URI. 2005-02-18 Denis Fortin * configure.in: check for sqlite3. * providers/sqlite/*: adapted to sqlite3. 2005-02-18 Rodrigo Moya * libsql/Makefile.am: use LDFLAGS only. 2005-02-17 Álvaro Peña * libgda/gda-xml-database.[ch]: added gda_xml_database_remove_table() 2005-02-16 Rodrigo Moya Fixes #167573 * libgda/gda-column-attributes.h: fixed typo. 2005-02-11 Vivien Malerba * libgda/gda-row.[ch]: added gda_row_set_is_default() and gda_row_get_is_default() 2005-02-10 Álvaro Peña * libgda/gda-table.c: Added the code to emit a new signal: NAME_CHANGED. (gda_table_get_columns): New function. Return the columns order by his position. (gda_table_find_column): New function. Return a GdaDataModelColumnAttribute from a name. * libgda/gda-table.h: Added the 2 new functions and the NAME_CHANGED signal. * libgda/gda-xml-database.c: Connect to NAME_CHANGED table signal. When a table named change, the database hash update to the new key (the new table name). 2005-02-07 Rodrigo Moya Released 1.3.0 2005-02-07 Bas Driessen * providers/postgres/gda-postgres-provider.c (gda_postgres_provider_begin_transaction): remove debug g_message lines. 2005-02-06 Bas Driessen * providers/mysql/gda-mysql-provider.c (gda_mysql_provider_create_table): bugfix; call function gda_mysql_provider_create_index() rather than the postgres one. 2005-02-05 Vivien Malerba * libgda/gda-value.c: make gda_value_stringify() return "NULL" if its argument is NULL, and fixed a bug in gda_value_compare() with strings comparison. * libgda/gda-data-model-column-attributes.h: added a 'dbms_type' field to the GdaDataModelColumnAttributes structure, where a string representation of the real DBMS data type for the column should be set. Work needs to be done wherever GdaDataModelColumnAttributes structures are created and filled. 2005-02-05 Bas Driessen * providers/mysql/gda-mysql-provider.c: added function gda_mysql_provider_create_index() and added DROP INDEX/ PRIMARY KEY method to gda_mysql_provider_drop_index(). (gda_mysql_provider_create_table): added parameter 'index_list' and code to create the indexes. (get_mysql_tables): suppress some compiler noise by proper casting of pointers. * providers/postgres/gda-postgres-provider.c: (gda_postgres_provider_create_table): added parameter 'index_list' and code to create the indexes. * libgda/gda-connection.[ch] (gda_connection_create_table): added parameter 'index_list' to hold a list of indexes to create. (gda_connection_drop_index): added parameter 'primary_key', since not all data providers allow a name to be given to an index/key. * libgda/gda-server-provider.[ch] (gda_server_provider_create_table): added parameter index_list to hold a list of indexes to create. (gda_server_provider_drop_index): added parameter 'primary_key', since not all data providers allow a name to be given to an index/key. * doc/C/: updated documentation. 2005-02-04 Bas Driessen * providers/postgres/gda-postgres-provider.c: added function gda_postgres_provider_create_index() and added DROP CONSTRAINT method to gda_postgres_provider_drop_index(). * libgda/gda-server-provider.c (gda_server_provider_create_index): bugfix; parameter 3 and 4 were mixed up. 2005-02-03 Álvaro Peña * libgda/gda-data-model.c: Removed the signals emits that must to emit the implementations, not this "interface". * libgda/data-model-array.c: When a row is removed, the following rows must to be renumber. 2005-02-03 Bas Driessen * libgda/gda-connection.[ch]: new prototypes and functions gda_connection_create_index() and gda_connection_drop_index(). * libgda/gda-server-provider.[ch]: new prototypes and functions gda_connection_create_index() and gda_connection_drop_index(). * providers/postgres/gda-postgres-provider.c: added prototype and function gda_postgres_provider_drop_index() and prototype and skeleton function gda_postgres_provider_create_index(). * providers/mysql/gda-mysql-provider.c: added prototype and function gda_mysql_provider_drop_index() and prototype and skeleton function gda_mysql_provider_create_index(). * doc/C: added create/drop index to documentation. * libgda/gda-column-index: minor bugfixes. * libgda/gda-data-model-index: minor bugfixes. 2005-02-02 Bas Driessen * libgda/: introduced GdaDataModelIndex to hold index data for a data model. * doc/C: added GdaDataModelIndex to documentation. 2005-02-01 Bas Driessen * libgda/: introduced GdaColumnIndex to hold index properties on column level. * doc/C: added GdaColumnIndex to documentation. 2005-01-31 Bas Driessen * providers/mysql/gda-mysql-provider.c: added functions gda_mysql_provider_create_table(), gda_mysql_provider_drop_table(). * providers/mysql/utils.[ch]: new function gda_mysql_type_from_gda() * providers/postgres/gda-postgres-provider.c (postgres_name_from_gda_type): typing error; "date" instead of "data". 2005-01-29 Bas Driessen * providers/postgres/gda-postgres-provider.c: added prototypes and functions gda_postgres_provider_create_table(), gda_postgres_provider_drop_table() and postgres_name_from_gda_type(). * providers/mysql/gda-mysql-provider.c: added prototypes for gda_mysql_provider_create_table() and gda_mysql_provider_drop_table(). * libgda/gda-connection.[ch] (gda_connection_create_table): changed last parameter to type GList. * libgda/gda-server-provider.[ch] (gda_server_provider_create_table): changed last parameter to type GList. * doc/C/libgda-sections.txt: renamed function gda_data_model_end_update to gda_data_model_commit_update. * doc/C/tmpl/gda-data-model.sgml: inserted section for new function gda_data_model_commit_update. * doc/C/tmpl/gda-connection.sgml: renamed parameter attributes to attributes_list for gda_connection_create_table entry. * doc/C/tmpl/gda-server-provider.sgml: renamed parameter attributes to attributes_list for gda_server_provider_create_table entry. 2005-01-25 Bas Driessen * libgda/gda-data-model-array.c: introduced new gda_data_model_append_row() method and added gda_data_model_changed() signal to all functions that change the contents of the data-model. * libgda/gda-data-model-base.c (gda_data_model_base_append_row): Use provider dependent implementation. * libgda/gda-data-model-hash.c: introduced new gda_data_model_hash_append_row() method. * providers/mysql/gda-mysql-provider.[ch]: change recordset implementation to GDA_TYPE_DATA_MODEL_ARRAY. * providers/mysql/gda-mysql-recordset.[ch]: introduced new methods gda_mysql_recordset_append_row(), gda_mysql_recordset_remove_row, gda_mysql_recordset_update_row * providers/postgres/gda-postgres-recordset.c: changed gda_postgres_recordset_append_values() to gda_postgres_recordset_append_row() method. (gda_postgres_recordset_update_row): Fixed updating of an appended row. 2005-01-24 Bas Driessen * providers/mysql/gda-mysql-provider.c (gda_mysql_provider_open_connection): Fix to allow parameters "USER" and "PASSWORD" be used as arguments in the MySQL DSN string. 2005-01-23 Vivien Malerba * libgda/gda-data-model.[ch]: renamed gda_data_model_append_row() to gda_data_model_append_values(), (which is marked as deprecated), and crated a new gda_data_model_append_row() function with a signature similar to the other gda_data_model_*_row() functions. * all other modifications: related to the above modifications 2005-01-20 Bas Driessen * providers/postgres/gda-postgres-recordset.c (guess_table_name): improve table name guessing by also checking on correct number of columns. 2005-01-19 Bas Driessen * libgda/gda-data-model-hash.c: introduce row mapping array (row_map) to keep track of active rows in a data-model that are represented by a hash table. Array added to struct _GdaDataModelHashPrivate. (gda_data_model_hash_remove_row): implemented remove method function. (gda_data_model_hash_append_row): add new mapping entry to array when new row is appended to data-model. (gda_data_model_hash_get_row): get row according to mapping. (gda_data_model_hash_get_n_rows): return active number of rows in data-model or -1 if not initialized. (gda_data_model_hash_clear): initialize array upon (re)creation of hash table. (gda_data_model_hash_init): initialize array pointer and hash row count. (gda_data_model_hash_finalize): free array when no longer needed. * providers/postgres/gda-postgres-recordset.c (gda_postgres_recordset_remove_row): implemented new method for data-model. (gda_postgres_recordset_get_n_rows): return active number of data-model rows. (gda_postgres_recordset_get_row): correct call to parent class function. 2005-01-15 Rodrigo Moya * configure.in: include version number in AC_PROG_INTLTOOL. * libsql/Makefile.am: use GDA* for soname version. Added LIBADD to fix test program compiling problem. 2005-01-11 Bas Driessen * providers/postgres/gda-postgres-recordset.c (gda_postgres_recordset_update_row): use " for field names in 'SET' part of query. remove unnecessary call to non-existent function gda_data_model_hash_update_row. emit appropriate 'updated' and 'changed' signals. 2005-01-09 Vivien Malerba * libgda/: Implemented GdaDataModel as an interface, and added a GdaDataModelBase class to serve as a base class in relpacement of the previous GdaDataModel * libgda/gda-value.[ch]: added gda_value_compare_ext() which like gda_value_compare(), compares two values of the same type, except that NULL values and values of type GDA_VALUE_TYPE_NULL are considered equals, and that a NULL value can be compared to a non NULL value. * libgda/: replaced GdaField with GdaDataModelColumnAttributes which is easier to understand and avoids mis-understandings * doc/C: improved documentation 2005-01-07 Bas Driessen * libgda/gda-data-model-hash.c (gda_data_model_hash_append_row): set row number of appended row. 2004-12-29 Aaron Gaudio * libgda.spec.in: fixed includedir. 2004-12-28 Rodrigo Moya Released 1.2.0. 2004-12-28 Rodrigo Moya * autogen.sh: changed to require automake >= 1.9. * configure.in: incremented library versions. * libsql/Makefile.am: reference correctly the libgdasql lib. * providers/freetds/gda-freetds-provider.c (gda_freetds_execute_cmd): * providers/freetds/gda-freetds-recordset.c (gda_freetds_recordset_new): use correct number of arguments for tds_process_result_tokens. * providers/mdb/gda-mdb-provider.c (gda_mdb_provider_open_connection): pass flags to mdb_open. 2004-12-14 Dru * libgda/sql_parser.c: Fixed bug in IS NOT clauses in SQL with NOT getting dropped. 2004-10-28 Bas Driessen * providers/postgres/gda-postgres-recordset.c (gda_postgres_recordset_append_row): use " for field names. 2004-10-28 Rodrigo Moya * *Makefile.am: s/INCLUDES/AM_CPPFLAGS. 2004-10-27 Alan * Makefile.w32 * libgda/Makefile.w32 * libsql/Makefile.w32 * Makefile.w32.cross: Upload Windows makefiles, including support for cross compiling, and potentially native with mingw along with dependancy download support, see top level Makefile.w32 for full details on usage. 2004-10-27 Dru * libsql/sql_parser.c: Fixing sql_statement_get_tables() to work correctly. 2004-10-26 Dru * libsql/sql_parser.c: * libsql/sql_parser.h: Fixing some of the issues with JOIN clauses in SELECT statements failing to parse or be re-created with libsql. Other general code tidyups. 2004-10-18 Tomasz K“©©oczko * configure.in: better looking PKG_CHECK_MODULES() output. Declare in one common place required versions of other tools using m4_define(). Fixed identation. 2004-10-15 Vivien Malerba * providers/mysql/gda-mysql-recordset.c (fill_gda_value): fixed support for DATE, TIME, TIMESTAMP and DATETIME types. 2004-10-14 Vivien Malerba * libgda/gda-data-model-hash.c (gda_data_model_hash_get_n_rows): added missing class method implementation. (gda_data_model_hash_class_init): ditto. 2004-10-13 Alan Knowles * libgda/gda-config.c: * testing/client.c: Win32 build fixes. 2004-10-13 David Hollis * libgda.spec.in: fixed for correct building on RH. 2004-10-10 Tomasz KÅ‚oczko * configure.in, providers/xbase/gda-xbase-database.cpp: fixes for correct detect xbase library and build backend module (fixed xbase.h header path). * configure.in: added fixes for latest autoheaders (added autoheaders prototypes). * po/POTFILES.in: remove providers/sybase/main.c from file (never used in dist resources).OA 2004-10-10 Rodrigo Moya Released 1.1.99. 2004-10-10 Rodrigo Moya * libsql/Makefile.am: use $(top_builddir) for libgdasql. 2004-10-10 Rodrigo Moya * libgda.pc.in: * libsql/Makefile.am: * libgda/Makefile.am: * report/libgda-report/Makefile.am: install headers in versioned directories. 2004-10-10 Rodrigo Moya * libgda/gda-config.[ch]: added GdaProviderParameterInfo structure. Changed list of params in GdaProviderInfo to be a list of GdaProviderParameterInfo structures. (gda_provider_parameter_info_get_type, gda_provider_parameter_info_copy, gda_provider_parameter_info_free): new functions. (gda_provider_info_copy, gda_provider_info_free): manage correctly the new list of arguments. * providers/bdb/libmain.c (plugin_get_connection_params): * providers/firebird/libmain.c (plugin_get_connection_params): * providers/freetds/libmain.c (plugin_get_connection_params): * providers/ibmdb2/libmain.c (plugin_get_connection_params): * providers/ldap/libmain.c (plugin_get_connection_params): * providers/mdb/libmain.c (plugin_get_connection_params): * providers/msql/gda-msqlp-libmain.c (plugin_get_connection_params): * providers/mysql/libmain.c (plugin_get_connection_params): * providers/odbc/libmain.c (plugin_get_connection_params): * providers/oracle/libmain.c (plugin_get_connection_params): * providers/postgres/libmain.c (plugin_get_connection_params): * providers/sqlite/libmain.c (plugin_get_connection_params): * providers/sybase/libmain.c (plugin_get_connection_params): * providers/xbase/libmain.c (plugin_get_connection_params): * providers/xml/libmain.c (plugin_get_connection_params): updated to return a list of GdaProviderParameterInfo instead of simple strings only. * tools/gda-config-tool.c (add_param_name_to_string): * testing/config.c (list_all_providers): adapted to above changes. 2004-10-09 Rodrigo Moya Fixes #152495 * doc/C/libgda-docs.sgml: fixed memory leak in sample code. 2004-10-09 Julio M. Merino Vidal Fixes #152217 * Makefile.am: added --enable-gtk-doc to DISTCHECK_CONFIGURE_FLAGS. * autogen.sh: * configure.in: fixed to work with autoconf >= 2.59 and automake >= 1.8. * libgda/gda-server-provider.c (gda_server_provider_get_version): * libgda/gda-xml-database.c (gda_xml_database_to_string): * providers/bdb/gda-bdb-provider.c (gda_bdb_provider_get_version): * providers/firebird/gda-firebird-provider.c (gda_firebird_provider_get_version): * providers/freetds/gda-freetds-provider.c (gda_freetds_provider_get_version): * providers/ibmdb2/gda-ibmdb2-provider.c (gda_ibmdb2_provider_get_version): * providers/ldap/gda-ldap-provider.c (gda_ldap_provider_get_version): * providers/mdb/gda-mdb-provider.c (gda_mdb_provider_get_version): * providers/msql/gda-msql-provider.c (gda_msql_provider_get_version): * providers/mysql/gda-mysql-provider.c (gda_mysql_provider_get_version): * providers/odbc/gda-odbc-provider.c (gda_odbc_provider_get_version): * providers/oracle/gda-oracle-provider.c (gda_oracle_provider_get_version): * providers/postgres/gda-postgres-provider.c (gda_postgres_provider_get_version): * providers/sqlite/gda-sqlite-provider.c (gda_sqlite_provider_get_version): * providers/sybase/gda-sybase-provider.c (gda_sybase_provider_get_version): * providers/sybase/main.c (main): * providers/xbase/gda-xbase-provider.c (gda_xbase_provider_get_version): * providers/xml/gda-xml-provider.c (gda_xml_provider_get_version): * testing/gda-test.c (main): use PACKAGE_VERSION rather than VERSION. 2004-10-09 Alan Knowles * libgda/gda-log.c: made it compile under Win32. * providers/postgres/gda-postgres-provider.c (gda_postgres_provider_escape_string): s/MYSQL/PostgreSQL. 2004-09-25 Rodrigo Moya Fixes #152487 * libgda/gda-server-provider.[ch]: added 'reset_connection' method. (gda_server_provider_reset_connection): new function. (gda_server_provider_class_init): initialize new method. * libgda/gda-connection.[ch] (gda_connection_reset): new function. 2004-09-25 Rodrigo Moya * libgda/Makefile.am: install gda-log.h with the other headers. 2004-09-25 Szalai Ferenc * libgda/gda-connection.c (gda_connection_new): use const where needed. (gda_connection_escape_string): return correct values. * libgda/gda-data-model-array.c (gda_data_model_array_update_row): use const where needed. (gda_data_model_array_append_column, gda_data_model_array_update_column, gda_data_model_array_remove_column): added missing return statement. * libgda/gda-data-model.c (export_to_separated, gda_data_model_to_xml_node): fixed warnings. * libgda/gda-error.c (gda_error_list_copy): fixed warnings. * libgda/gda-parameter.[ch] (gda_parameter_new_from_value): added 'const' to the @value argument. (gda_parameter_list_free): fixed warning. * libgda/gda-select.c (gda_select_add_source): fixed warning. (populate_from_single_table): fixed warning. * libgda/gda-value.c (clear_value): added case for TYPE types. (gda_value_set_list): fixed warning. * libgda/gda-xml-database.c (gda_xml_database_new_table_from_node): set the field attributes' caption as a string, not as an integer. * libgda/libgda.h: included gda-log.h. * providers/ldap/gda-ldap-provider.c (get_ldap_tables): fixed warning. * providers/ldap/libmain.c: added missing function prototypes. * providers/mysql/gda-mysql-provider.c (gda_mysql_provider_get_last_insert_id, add_aggreagate_row): fixed warning. * providers/postgres/gda-postgres-recordset.c (gda_postgres_recordset_append_row): implemented new data model's method. (gda_postgres_recordset_class_init): set new method. (gda_postgres_recordset_update_row): update the underlying array data model when the update in the database goes well. (gda_postgres_recordset_get_n_rows): check the number of items in the underlying array data model, and return the MAX. * providers/postgres/gda-postgres.h: added missing prototype. * providers/postgres/utils.c (gda_postgres_type_oid_to_gda): fixed warning. (gda_postgres_value_to_sql_string): new function. * report/libgda-report/gda-report-document.c: added missing #include. 2004-09-25 Rodrigo Moya * configure.in: removed obsolete GNOME_COMPILE_WARNINGS macro. * libgda/gda-connection.[ch] (gda_connection_escape_string): * libgda/gda-server-provider.[ch] (gda_server_provider_escape_string): * providers/postgres/gda-postgres-provider.c (gda_postgres_provider_escape_string): * providers/mysql/gda-mysql-provider.c (gda_mysql_provider_escape_string): improved the escape_string method, by setting correctly the const'ness of the arguments and removing the 'length' argument, since strings should be now NULL terminated. 2004-09-25 Caolan McNamara Fixes #150231 * configure.in: improved ODBC, MySQL and PostgreSQL detection. 2004-09-25 Dru * libsql/parser.y: Fixed not null issue in where statements * libsql/sample_sql_statements: Added examples that broke stuff. * libsql/sql_parser.c: Fixed bug 152874, sql statements with complex where statements were often failing to generate properly. * providers/postgres/gda-postgres-recordset.c: Added minor comments. 2004-09-14 Dru * libgda/gda-value.c: Improved documentation. * libsql/sql_parser.c: Added support function for helping decode the where statements. Removed some obsolete code. 2004-09-09 Dru * sql_parser.c: When getting a list of where statements it will return the join's as well now. 2004-09-09 Dru * .cvsignore, Makefile.am, sql_parse_test.c, sql_parser.c, sql_parser.h, sql_parser_test.c: Added function to get a list of where clauses in a sql statement. Readded test code to check to see if the function works ok. 2004-09-02 Jeronimo Albi * providers/firebird/gda-firebird-blob.c: New File. * providers/firebird/gda-firebird-blob.h: New File. * providers/firebird/gda-firebird-recordset.c: Added read support for blob data type. 2004-09-01 Alan Knowles * providers/mysql/gda-mysql-provider.c (get_mysql_types): updated list of types to match the real MySQL types. 2004-08-31 Jeronimo Albi * providers/firebird/gda-firebird-provider.c: (gda_firebird_provider_execute_command): Added support for "transparent transactions". 2004-08-26 Rodrigo Moya Fixes #151054 * providers/firebird/gda-firebird-recordset.c (fb_gda_value_fill): removed extra spaces before punctuation marks. 2004-08-21 Jeronimo Albi * samples/sample-firebird.c: Added example code for Firebird provider. * providers/firebird/gda-firebird-recordset.c: Corrected a problem with Firebird date and datetime year part, fixes bug #15063. 2004-08-21 Kjartan Maraas * configure.in: Add «nb» to ALL_LINGUAS. 2004-08-20 Vivien Malerba * libsql/parser.y: bug fixed to allow the alias specification for any target in queries * libsql/sql_tree.c: bug fixed with uninitialized allocated memory * providers/postgres/gda-postgres-provider.c: fixed a bug with the 'anyelement' data type which we don't want, and fixed another bug where aggregates and functions accepting any data type for one argument were not returned in the schemas requests. 2004-08-18 Rodrigo Moya * libgda/gda-client.c (gda_client_find_connection): use the correct dsn/username/password when searching the connection. 2004-08-18 Rodrigo Moya * libgda/gda-client.c (gda_client_find_connection): fixed to not crash on strcmp(). 2004-08-18 Jeronimo Albi * providers/firebird/gda-firebird-provider.c: (gda_firebird_provider_drop_database): Corrected to drop requested database. (gda_firebird_provider_get_schema, gda_firebird_provider_supports): Added support for GDA_CONNECTION_SCHEMA_AGGREGATES. 2004-08-18 José María Casanova Crespo * libgda/gda-connection.[ch] (gda_connection_clear_error_list): new function. * providers/postgres/gda-postgres-provider.c (gda_postgres_provider_begin_transaction): improved support of transaction modes. 2004-08-17 Alan Knowles * libgda/gda-connection.[ch] (gda_connection_escape_string): new function. * libgda/gda-server-provider.[ch]: added escape_string virtual method. (gda_server_provider_escape_string): new function. * providers/mysql/gda-mysql-provider.c (gda_mysql_provider_escape_string): implemented new GdaServerProvider's virtual method. (gda_mysql_provider_class_init): set pointer to new method's implementation. * providers/postgres/gda-postgres-provider.c (gda_postgres_provider_escape_string, gda_postgres_provider_class_init): likewise. 2004-08-17 Caolan McNamara Fixes #150232 * libgda/gda-util.c (gda_type_to_string): * providers/mysql/gda-mysql-provider.c (gda_mysql_provider_execute_command, gda_mysql_provider_supports, gda_mysql_provider_get_schema): * providers/xml/gda-xml-provider.c (gda_xml_provider_get_schema): more fixes for compilation with GCC 3.4. 2004-08-16 Vivien Malerba * libsql/parser.y: bug fixed to allow the alias specification for any target in queries * libsql/sql_tree.c: bug fixed with uninitialized allocated memory 2004-08-16 Joe Marcus Clarke * providers/xml/gda-xml-provider.c (get_types): use empty strings rather than NULL for the owner field. 2004-08-12 Rodrigo Moya Released 1.1.6. 2004-08-08 Rodrigo Moya * doc/C/libgda-docs.sgml: some more fixes. 2004-08-06 Szalai Ferenc * libgda/gda-row.c (gda_row_set_number): set the GdaRow's to $number, not to 0. 2004-08-01 Jeronimo Albi * providers/firebird/gda-firebird-provider.c: (fb_get_fields_metadata, fb_type_name_to_gda_type, fb_set_fields_metadata, fb_set_index_field_metadata): New fuctions. (gda_firebird_provider_get_schema): GDA_CONNECTION_SCHEMA_FIELDS is working. * providers/firebird/gda-firebird-recordset.c: (fb_sql_type_to_gda_type): New fuction. 2004-08-01 Jeronimo Albi * providers/firebird/gda-firebird-provider.c: (fb_server_get_version): New fuction. (gda_firebird_provider_get_server_version): Now returns server version. 2004-08-01 Jeronimo Albi * providers/firebird/gda-firebird-provider.c: (fb_get_types, fb_sqlerror_get_description, fb_get_tables): New functions. Change database connection routines for a more secure method of connection. (gda_firebird_provider_create_database, gda_firebird_provider_execute_command, gda_firebird_provider_drop_database): Are working now. (gda_firebird_provider_get_schema): Is working now for GDA_CONNECTION_SCHEMA_TYPES, GDA_CONNECTION_SCHEMA_TABLES and GDA_CONNECTION_SCHEMA_VIEWS. (gda_firebird_connection_make_error): Added description of error (Firebirds's SQL error message) when adding error to GdaConnection. * providers/firebird/gda-firebird-recordset.c: (fb_sql_result_free, fb_sql_result_columns_malloc, fb_sql_result_set_columns_number, fb_sql_get_statement_type, fb_sql_prepare, fb_sql_unprepare, fb_sql_execute, fb_sql_affected_rows, fb_gda_value_fill, fb_sql_fetch_row): New fuctions. Added recordset support. Added Firebird's data types (except Blob and Array). * providers/firebird/libmain.c: Add CHARACTER_SET, SQL_DIALECT and PAGE_SIZE to list of connection params. Changed name of provider to "Firebird", instead of "FireBird". 2004-07-31 Dani Baeyens * doc/C/Makefile.am, doc/C/libgda-docs.sgml, libgda/gda-connection.c, libgda/gda-data-model.c, libgda/gda-log.c, libgda/gda-server-provider.c, libgda/gda-server-provider.c, libgda/gda-value.c, report/libgda-report/gda-report-document.c, report/libgda-report/gda-report-item.c, report/libgda-report/gda-report-result.c: Changed to have documentation with .devhelp book (and no errors when making) 2004-07-22 Rodrigo Moya Released 1.1.5. 2004-07-16 Rodrigo Moya * Makefile.am: EXTRA_DIST mkinstalldirs :( 2004-07-11 Vivien Malerba * providers/postgres/gda-postgres-recordset.c: bug fixed for annoying warning message 2004-07-05 Murray Cumming * providers/postgres/util.c: gda_postgres_type_oid_to_gda(): Do not read past the end of the type_data array. Found by valgrind. 2004-06-25 Vivien Malerba * providers/odbc/gda-odbc-provider.c: fixed a recordset column fori bug #144923 2004-06-24 Vivien Malerba * libsql/*: improved parsing of condition operators (added regex operators such as "~", "~*", etc and "SIMILAR TO", and modified the sql_condition structure to add a "negated" attributes for negated conditions and the sql_condition_operator enum for the new recognized operators. 2004-06-10 Murray Cumming * libgda/gda-value.[h|cc]: Add get_type(), copy(), and free() functions for GdaMoney and GdaNumeric so that they are real boxed types. 2004-06-07 Rodrigo Moya Released 1.1.4. 2004-06-06 Marcin Siennicki Fixes #142580 * libgda.spec.in: added information for building FireBird provider. 2004-06-06 Rodrigo Moya * libgda/gda-data-model.[ch] (gda_data_model_append_column, gda_data_model_update_column, gda_data_model_remove_column): use better function signatures. * libgda/gda-data-model-array.c (gda_data_model_array_append_column, gda_data_model_array_update_column, gda_data_model_array_remove_column): started implementation of missing virtual methods. (gda_data_model_array_class_init): init new virtual methods. 2004-06-06 Rodrigo Moya * providers/mysql/utils.c (gda_mysql_type_to_gda): added an 'is_unsigned' argument and return signed/unsigned types approppriately. * providers/mysql/gda-mysql-recordset.c (fill_gda_value): made it static, to fix some warnings. Added 'is_unsigned' argument and set signed/unsigned values approppriately. (gda_mysql_recordset_describe_column): update for gda_mysql_type_to_gda() changes. (fetch_row): update for fill_gda_value() changes. * providers/mysql/gda-mysql.h: updated function prototype. 2004-06-05 Vivien Malerba * libsql/parser.y & libsql/lexer.l: added a special keyword '##', which can be used for parameters when no value is provided, such as "SELECT name FROM users WHERE id=##". 2004-06-03 Rodrigo Moya * configure.in: removed obsolete GNOME_PLATFORM_GNOME_2 macro. 2004-06-02 Murray Cumming * libgda/gda-field.c: gda_field_attributes_copy(): Really copy the default_value. 2004-06-01 Rodrigo Moya Released 1.1.3 2004-06-01 Rodrigo Moya * configure.in: fixed checks for gtk-doc. * doc/C/libgda-docs.sgml: fixes for xsltproc. 2004-05-31 Jürg Billeter * libgda/gda-util.c: * providers/mdb/gda-mdb-provider.c: * providers/ldap/gda-ldap-provider.c: * providers/mysql/gda-mysql-provider.c: * providers/oracle/utils.c: * providers/sqlite/gda-sqlite-provider.c: * providers/xml/gda-xml-provider.c: fixes for compilation with gcc 3.4. 2004-05-10 Murray Cumming * libgda/gda-util.c (gda_type_to_string): Added case statements for types that were not already handled, such as the unsigned types. Changed the default to unknown rather than string. * libgda/gda-util.c (gda_type_from_string): Added case statements for remaining types. 2004-05-05 Rodrigo Moya * libgda/gda-connection.[ch] (gda_connection_create_table, gda_connection_drop_table): new functions. 2004-05-02 Rodrigo Moya * providers/xml/gda-xml-provider.c (get_types): added missing fields to the returned schema, and added missing types, since the XML provider supports all the types in libgda (except GOBJECT and BLOB). * doc/C/libgda-docs.sgml: use newer DocBook DTD. 2004-05-01 Rodrigo Moya * libgda/gda-server-provider.[ch]: added 'create_table' and 'drop_table' virtual methods. (gda_server_provider_create_table, gda_server_provider_drop_table): new functions. * libgda/gda-connection.c (gda_connection_get_schema): added information about what to do with the returned value. 2004-05-01 Rodrigo Moya * libgda/gda-server-provider.[ch]: added 'get_last_insert_id' virtual method. (gda_server_provider_get_last_insert_id): new function. (gda_server_provider_class_init): initialize new virtual method. * libgda/gda-connection.[ch] (gda_connection_get_last_insert_id): new function. * providers/postgres/gda-postgres-provider.c (gda_postgres_provider_get_last_insert_id): implemented new method. * providers/postgres/gda-postgres-recordset.[ch] (gda_postgres_recordset_get_pgresult): new function. * providers/mysql/gda-mysql-provider.c (gda_mysql_provider_get_last_insert_id): implemented new method. 2004-04-28 Murray Cumming * libgda/gda-field.[h|c]: Added gda_field_attribute_equal(). 2004-04-23 Murray Cumming * libgda/gda-field.c (gda_field_attribute_copy): Don't copy the default_value if it is 0, to avoid runtime warnings. * libgda/gda-client.c: (gda_client_notify_error_event, gda_client_notify_transction_started_event, gda_client_notify_transaction_committed_event, gda_client_notify_transaction_cancelled_event): Cast the objects to GObject, to avoid compiler warnings. 2004-04-28 Álvaro Peña * libgda/gda-data-model.c: (export_to_separated), (gda_data_model_to_xml_node): don't use gda_value_stringify for boolean values 2004-04-26 Rodrigo Moya Released 1.1.2 2004-04-23 Murray Cumming * libgda/gda-command.h, gda-config.h, gda-field.h, gda-parameter.h: Use the typedef struct _Something Something technique to allow other code to declare prototypes, so that the C++ bindings do not need to include the headers in their public headers. 2004-04-23 Murray Cumming * providers/postgres/gda-postgres-recordset.c (guess_table_name): Copy the table_name before freeing the struct, not after, to fix an occasional crash. Thanks valgrind. 2004-04-23 Murray Cumming * libgda/gda-client.c (gda_client_open_connection_from_string): Added documentation about the cnc_string format. 2004-04-22 Robert Davis * providers/freetds/gda-freetds-provider.c (gda_freetds_provider_open_connection): use tds_set_client_charset instead of tds_set_charset. 2004-04-19 Rodrigo Moya * libgda/gda-data-model.c (gda_data_model_update_column): fixed c/p typo. * libgda/gda-data-model-array.c (gda_data_model_array_update_row): added implementation of missing virtual method. (gda_data_model_array_class_init): added new virtual method. 2004-04-18 Rodrigo Moya Fixes #139800 * providers/freetds/gda-freetds-provider.c (gda_freetds_execute_cmd): * providers/freetds/gda-freetds-recordset.c (gda_freetds_recordset_new): updated to latest FreeTDS 0.62 API. 2004-04-16 Denis Loginov * providers/postgres/gda-postgres-provider.c (gda_postgres_fill_md_data): Fixed the "Not Null?" columns, so that it indeed returns the "Not null" and not its inverse. 2004-04-17 Adam Weinbegrer * configure.in: Added en_CA to ALL_LINGUAS. 2004-04-15 Benjamin Otte Fixes #140113 * providers/sqlite/gda-sqlite-provider.c (sql_split): new function to correctly split multiple SQL commands. (process_sql_commands): use the new function instead of g_strsplit. 2004-04-06 Vivien Malerba * libsql/sql_parser.c: merged Andru's work (hope nothing has been forgotten) 2004-04-05 Rodrigo Moya * libgda.spec.in: s/default/xml. 2004-04-02 Gareth Owen * configure.in: Added en_GB to ALL_LINGUAS 2004-04-01 Rodrigo Moya Released 1.1.1 2004-04-01 Rodrigo Moya * doc/C/libgda-docs.sgml: fixed some content. 2004-04-01 Leonardo Boshell Fixes #138741 * doc/C/libgda-docs.sgml: fixed Docbook markup. 2004-03-17 Rodrigo Moya * libgda/gda-config.[ch] (gda_provider_info_free): renamed from gda_config_free_provider_info to match the other GdaProviderInfo-related functions. (gda_provider_info_get_type, gda_config_free_provider_list): renaming. * libgda/gda-client.c (gda_client_open_connection): more renaming. 2004-03-16 Vivien Malerba * libsql/*: Improved the joins handling (changed the sql_table structure), and added join type (LEFT, RIGHT, FULL). 2004-03-13 Vivien Malerba * libsql/*: several improvements with a change in the sql_table structure. - added != symbol as WHERE condition - identifiers can now contain an underscore - improved ORDER BY support - improved JOIN support - improved WHERE conditions 2004-03-08 Rodrigo Moya * libgda/libgda.h: * libgda/Makefile.am: don't install gda-export.h nor gda-log.h, those should be internal files only. 2004-03-05 Vivien Malerba * libsql/*: * incorporated Andrew's latest changes * re-indented the whole code to the same style as libgda 2004-03-05 Vivien Malerba * libsql/*: * Improved lexer rules for functions and SELECT without a FROM clause * Added extra syntax to specify parameters: between [] after a field, can contain :name, :descr, :type, :isparam, :nullok attributes. * Added strings recognized between double quotes (example: "a good' string"). 2004-03-04 Laurent Sansonetti Fixes #132216 * libgda/gda-client.c (gda_client_open_connection_from_string): Reuses existing connections by looking in the opened connections pool. * libgda/gda-client.c (gda_client_open_connection): Fixed a memory leak. Fixes #129560 * libgda/gda-config.c (gda_config_set_string, gda_config_set_int, gda_config_set_float, gda_config_set_boolean): Changes the type of the key if already existing. 2004-03-03 Jon Willeke Fixes #131592 * providers/odbc/gda-odbc-provider.c (process_sql_commands): UTF-8 conversions for SQLExecDirect() and SQLGetData(). 2004-02-28 Vivien Malerba * libsql/lexer.l: bug fixed * libsql/Makefile.am: make sure sql_parser.h is installed in libgda/sql directory 2004-02-18 Sergey N. Belinsky * gda-ibmdb2-recordset.c: Fixed size of data. Clean up data after use. * gda-ibmdb2-types.[ch]: Fixed NUMERIC datatype. Message for unsupported datatypes. * libmain.c: Removed unused options. 2004-02-15 Vivien Malerba * libgda/gda-value.c: bugs fixes in gda_value_compare() 2004-02-09 Tomasz K³oczko * configure.in: Trivial cleanup: remove AC_SUBST(CFLAGS), AC_SUBST(CPPFLAGS) and AC_SUBST(LDFLAGS). This variables are substed by default. 2004-02-07 Robert Sedak * configure.in: Added "hr" (Croatian) to ALL_LINGUAS. 2004-01-25 Rodrigo Moya Fixes #132213 * libgda/gda-client.c (gda_client_open_connection): make sure we don't share connections opened with the DONT_SHARE flag. 2004-01-22 Jon Willeke Fixes #132152 * libgda/gda-client.c (gda_client_find_connection): compare get_dsn() to name, rather than cnc_string. 2004-01-24 Paisa Seeluangsawat * libgda/gda-row.[ch]: * libgda/gda-value.[ch]: removed useless const in arguments. 2004-01-15 Nikolai Weibull * providers/sqlite/gda-sqlite-provider.c (gda_sqlite_provider_open_connection): set the object's private data before executing any command. 2004-01-12 Jon Willeke Fixes #131252 * providers/odbc/utils.c (gda_odbc_emit_error): style fixes. 2004-01-12 Jon Willeke Fixes #131251 * providers/odbc/gda-odbc-provider.c (gda_odbc_provider_open_connection): set ODBC connection to read-only if GdaConnection is set so. 2004-01-10 Jon Willeke Fixes #131046 * providers/odbc/gda-odbc-provider.c (gda_odbc_provider_open_connection): retrieve the DBMS version, not the driver version. 2004-01-10 Jon Willeke Fixes #130838 * providers/odbc/gda-odbc-provider.c (process_sql_commands): changed to get the SQL command as a string. (gda_odbc_provider_execute_command): added support for TABLE commands. 2004-01-10 J.H.M. Dassen (Ray) http://bugs.debian.org/226560 * providers/sqlite/gda-sqlite-provider.c: #include to have gda_type_to_string declared. This fixes pointer/integer issues on 64-bit architectures, in particular IA64. 2004-01-09 Jon Willeke Fixes #130945 * providers/odbc/gda-odbc-provider.c (process_sql_commands): use correct counter. 2004-01-09 Jon Willeke Fixes #130938 * providers/odbc/gda-odbc-provider.c: added support for NAMESPACES. 2004-01-02 Laurent Sansonetti * libgda/gda-util.c (gda_file_save): added O_TRUNC flag. 2003-12-22 Rodrigo Moya * libgda/gda-command.c (gda_command_copy): dont use C99. 2003-12-19 Rodrigo Moya * libgda/gda-config.c (gda_config_get_data_source_list): fixed documentation typo. 2003-12-19 Rodrigo Moya * libgda/gda-error.[ch] (gda_error_get_number): removed 'const' from function's return type. 2003-12-17 Laurent Sansonetti * providers/bdb/gda-bdb.h: Introduced BDB_VERSION macro. * providers/bdb/gda-bdb-provider.c: * providers/bdb/gda-bdb-recordset.c: - Fixed a compilation bug when using BDB < 4.1.24 ; - get_server_version handler uses DB_VERSION_STRING. 2003-12-14 Rodrigo Moya * configure.in: disable MySQL provider until we resolve the licensing issues. 2003-12-14 Laurent Sansonetti * libgda/gda-connection.c, libgda/gda-data-model.c * libgda/gda-export.c, libgda/gda-value.c: Fixed some typos in the doc. 2003-12-09 Rodrigo Moya Fixes #128933 * libgda/gda-log.[ch] (gda_log_clean_*): removed unimplemented functions. 2003-12-09 Rodrigo Moya Fixes #128929 * libgda/gda-client.h: added missing space in function prototype that confuses pygtk's h2def.py. 2003-12-03 Laurent Sansonetti * libgda/gda-data-model.[ch]: - Renamed some methods: gda_data_model_is_editable -> gda_data_model_is_updatable ; gda_data_model_begin_edit -> gda_data_model_begin_update ; gda_data_model_cancel_edit -> gda_data_model_cancel_update ; gda_data_model_end_edit -> gda_data_model_end_update ; gda_data_model_is_editing -> gda_data_model_has_changed. - Renamed some signals: "begin_edit" -> "begin_update" ; "cancel_edit" -> "cancel_update" ; "end_edit" -> "end_update". - Added some methods: gda_data_model_append_column ; gda_data_model_update_column ; gda_data_model_remove_column. - Added some signals: "column_inserted" ; "column_updated" ; "column_removed". * libgda/gda-data-model-array.c: * libgda/gda-data-model-hash.c: * libgda/gda-data-model-list.c: * libgda/gda-select.c: * providers/ldap/gda-ldap-recordset.c: * providers/msql/gda-msql-recordset.c: * providers/mysql/gda-mysql-recordset.c: * providers/oracle/gda-oracle-recordset.c: Follows GdaDataModel changes (updatable interface). 2003-11-30 Laurent Sansonetti * libgda/gda-parameter.c (gda_parameter_list_clear): Parameters were not removed from the hash table (just freed). 2003-11-29 Laurent Sansonetti * providers/bdb/*.c: Fixes compilation problems with Berkeley DB 4.x. 2003-11-28 Gonzalo Paniagua Javier * libgda/gda-data-model.c: emit the row_updated, row_inserted, row_removed and changed signals when appropiate. 2003-11-28 Laurent Sansonetti * configure.in, providers/Makefile.am, providers/bdb/*: Added Berkeley-DB provider (experimental). * libgda/gda-connection.c (gda_connection_begin_transaction): Fixes a typo in the comment. 2003-11-26 Filip Van Raemdonck * providers/mdb/gda-mdb-provider.c (gda_mdb_provider_execute_sql): guard against passing NULL pointers to mdb-tools. 2003-11-24 Rodrigo Moya Released 1.1.0 2003-11-21 Laurent Sansonetti * libgda/gda-parameter.c: Implements gda_parameter_set_value(). 2003-11-12 Paisa Seeluangsawat * libgda/gda-blob.c: * libgda/gda-connection.c: * libgda/gda-log.c: * libgda/gda-select.[ch]: * libgda/gda-util.c: trivial fixes to stop some compiler warnings (gcc 3.2.2) * libgda/gda-row.c: (gda_row_new_from_list): updated doc comment. * libgda/gda-data-model.c: updated a doc comment. (gda_data_model_foreach): stop the loop when user function returns FALSE (as advertised in the spec). No longer clones the GdaRows sent to user's callback. 2003-11-12 Gonzalo Paniagua Javier * libgda/gda-value.c: fixed gda_value_copy for GdaNumeric. Patch by David Marín . 2003-11-11 Laurent Sansonetti * providers/postgres/gda-postgres-recordset.c: Added support for updatable data models. * libgda/gda-command.[ch] (gda_command_get_type, gda_command_copy): * libgda/gda-field.[ch] (gda_field_attributes_get_type): * libgda/gda-parameter.[ch] (gda_parameter_get_type, gda_parameter_copy, gda_parameter_list_get_type, gda_parameter_list_copy): * libgda/gda-quark-list.[ch] (gda_quark_list_get_type, gda_quark_list_copy): * libgda/gda-row.[ch] (gda_row_get_type, gda_row_copy): * libgda/gda-value.[ch] (gda_value_get_gtype): Added missing *_get_type and *_copy functions. 2003-11-03 Jonathan Blandford * libsql/lexer.l: #undef L_SET, since it might be defined when enabling the BSD compatibility layer on Linux. 2003-10-27 Laurent Sansonetti * libgda/gda-config.[ch] (gda_config_get_provider_model): New function. 2003-10-26 Laurent Sansonetti * libgda/gda-data-model.c (gda_data_model_to_xml): Implemented the standalone=FALSE case. 2003-10-19 Laurent Sansonetti * doc/C/examples/full_example.c: Fixed compilation issues (was broken). 2003-10-18 Laurent Sansonetti * libgda/*.c: * doc/C/tmpl/*.sgml: Added some missing entries in the API reference, and fixed existing ones. 2003-10-18 Rodrigo Moya * libgda/Makefile.am: added gda-marshal.c to built_files. 2003-10-16 Paisa Seeluangsawat * providers/mysql/gda-mysql-provider.c: - add #include - minor cosmatic fixes to stop some compiler warnings. * providers/mysql/gda-mysql-recordset.c: - fixed possible memory leak by moving gda_row_new() a few line down. - commented out variable "lengths", which doesn't seem to be used anywhere. - handle FIELD_TYPE_BLOB length correctly - distinguish SQL NULL from 0, 0.0, "". - factored the code for mysql data -> GdaValue conversion into fill_gda_value() 2003-10-16 Rodrigo Moya * libgda/gda-connection.h: added FEATURE_UPDATABLE_CURSOR to GdaConnectionFeature enumeration. 2003-10-14 Murray Cumming * libgda/gda-config.[h|c]: Register GdaProviderInfo and GdaDataSourceInfo boxed gtypes, with copy and free functions. Useful for language bindings. 2003-10-12 Paisa Seeluangsawat * libgda/gda-field.h: * libgda/gda-field.c: added default_value field into GdaFieldAttributes. Add/modify related functions. 2003-10-12 Rodrigo Moya * libgda/Makefile.am: fixed enum code generation. 2003-10-11 Rodrigo Moya * doc/C/tmpl/gda-blob.sgml: added missing file. 2003-10-11 Rodrigo Moya Fixes #123342 * libgda/gda-client.c (gda_client_close_all_connections): remove connections from the list before closing them. (gda_client_notify_event): only notify events if the connection is in our private list. 2003-10-11 Rodrigo Moya Fixes #121403 * libgda/gda-connection.c (gda_connection_new): duplicate real_username and real_password strings before they are freed. 2003-10-07 Laurent Sansonetti * libgda/gda-quark-list.c: * libgda/gda-quark-list.h: introduced gda_quark_list_clear() + gda_quark_list_add_from_string() takes care of the 'cleanup' boolean parameter. 2003-10-01 Murray Cumming * libgda/Makefile.am: Use glib-mkenums to generate the get_type() functions for the libgda enums. The build file stuff is based on the same stuff in pango. 2003-10-01 Laurent Sansonetti * libgda/doc/C/libgda-docs.sgml: fixed some typos and added some information related to the MySQL provider. 2003-09-30 Laurent Sansonetti * libgda/gda-client.h: added missing prototype. 2003-09-29 Christian Neumair * providers/sybase/utils.c: Fixed string (#110449). 2003-09-19 Chris Silles * configure.in: fixed msql switch check * providers/msql/gda-msql-provider.c: * providers/msql/gda-msql-recordset.c: * providers/msql/gda-msql-recordset.h: Fixed mSQL provider handling of non-query queries. 2003-09-17 Seth Remington Fixes #117202 * providers/freetds/gda-freetds-provider.[ch]: adapted to API changes in tds_connect. 2003-09-01 Rodrigo Moya * providers/xml/gda-xml-provider.c: killed warnings. (process_sql_commands): added missing implementation. 2003-09-01 Rodrigo Moya * doc/C/tmpl/*.sgml: * libgda/gda-parameter.c: * libgda/gda-quark-list.c: added more inline documentation. 2003-08-26 Philippe CHARLIER * libgda/gda-value.c (gda_value_new_from_xml): the type is stored in the "gdatype" property, not "type". * libgda/gda-data-model.c (add_xml_row): fixed typo in call to strcmp(). 2003-08-25 Rodrigo Moya * libgda/gda-xml-database.c (gda_xml_database_new_table_from_node): return NULL if we cannot create the table, not if we can. 2003-08-24 Gonzalo Paniagua Javier * libgda/gda-client.c: * libgda/gda-value.c: * providers/postgres/gda-postgres-provider.c: * testing/client.c: * testing/postgres-test.c: fixed leaks. Now gda-test doesn't leak when testing mysql, postgrest and default providers. 2003-08-24 Gonzalo Paniagua Javier * doc/C/libgda-docs.sgml: * doc/C/tmpl/gda-blob.sgml: * libgda/gda-connection.c: * libgda/gda-blob.h: added documentation for GdaBlob. * libgda/gda-server-provider.c: * libgda/gda-data-model.c: make them abstract. * testing/postgres-test.c: fixed double free. 2003-08-23 Rodrigo Moya * libgda/gda-data-model.[ch] (gda_data_model_add_data_from_xml_node): new function. (gda_data_model_to_xml_node): use "value" instead of "field" as the name for the nodes representing the fields' values, to work the same as gda_value_new_from_xml(). Also, add the "gdatype" property. * libgda/gda-xml-database.c (gda_xml_database_new_table_from_node): implemented missing code. 2003-08-22 Philippe CHARLIER * libgda/gda-xml-database.[ch] (gda_xml_database_set_version): removed (gda_xml_database_get_user_version, gda_xml_databaase_set_user_version): new functions to let applications have a specific version number. (gda_xml_database_save): don't call gda_xml_database_set_version. (gda_xml_database_init, gda_xml_database_finalize): manage the 'user_version private field. 2003-08-16 Gonzalo Paniagua Javier * libgda/gda-blob.c: * libgda/gda-blob.h: removede the 'connection' parameter. The provider should store that as part of the private data in the GdaBlob. Added gda_blob_remove and gda_blob_free_data to allow for blob removal and freeing the data stored by the provider. * libgda/gda-connection.c: * libgda/gda-connection.h: added gda_connection_create_blob and GDA_CONNECTION_FEATURE_BLOBS. * libgda/gda-server-provider.c: * libgda/gda-server-provider.h: added new virtual function create_blob. Providers that support BLOBs should override this. * libgda/gda-value.c: use gda_blob_free_data when clearing a BLOB value. * libgda/libgda.h: include gda-blob.h * providers/postgres/gda-postgres-provider.c: override create_blob and support GDA_CONNECTION_FEATURE_BLOBS. * providers/postgres/gda-postgres-recordset.c: when we get a blob, store the current connection data in its private data. * providers/postgres/gda-postgres.h: added gda_postgres_blob_set_connection and *blob_create declarations. * providers/postgres/utils.c: adapted the blob interface to the new one. Added remove and free_data. A few fixes. * testing/client.c: check for FEATURE_BLOBS. * testing/postgres-test.c: added tests for BLOBs and fixed print_errors. 2003-08-15 Gonzalo Paniagua Javier * libgda/Makefile.am: * libgda/gda-blob.c: * libgda/gda-blob.h: * libgda/gda-util.c: * libgda/gda-value.c: * libgda/gda-value.h: * providers/postgres/gda-postgres-provider.c: * providers/postgres/utils.c: added GdaBlob and support for BLOBs in the postgres provider. Patch by Juan-Mariano de Goyeneche (jmseyas@dit.upm.es). 2003-08-15 Gonzalo Paniagua Javier * providers/mysql/gda-mysql-provider.c: pass the MYSQL pointer to the new recordset. * providers/mysql/gda-mysql-recordset.c: if mysql_res is NULL, it was a non-query: store the number of affected rows. * providers/mysql/gda-mysql-recordset.h: gda_mysql_recordset_new has a new parameter. Added 'affected_rows' field. Fixes bug #119912. 2003-08-13 Rodrigo Moya * libgda/gda-config.[ch] (gda_config_save_data_source_info): new function. * configure.in: bumped version number. 2003-08-10 Akira TAGOH * configure.in: fixed typo to build the freetds backend correctly. 2003-08-06 Rodrigo Moya Released 0.91.0 2003-08-01 Carlos Perelló Marín * bindings/Makefile.am, bindings/.cvsignore: Removed so we can nuke this directory. * README: Removed teh bindings directory reference. 2003-08-01 Gonzalo Paniagua Javier * libsql/sql_parser.h: compilation used to fail in some cases. 2003-07-30 Rodrigo Moya * libgda/gda-xml-database.c (gda_xml_database_to_string): set the VERSION string for the version property, not the name. * libgda/gda-util.c (gda_file_save): added permissions to the open function call. 2003-07-27 Rodrigo Moya * libgda/gda-xml-database.c (gda_xml_database_new_table, gda_xml_database_new_table_from_model, gda_xml_database_new_table_from_node): connect to "changed" signal on the tables. (table_changed_cb): propagate the "changed" signal to the GdaXmlDatabase object. (remove_table_hash): disconnect from data models' signals. (gda_xml_database_finalize): pass extra argument to remove_table_hash. * doc/C/tmpl/gda-xml-database.sgml: * libgda/gda-data-model.c: added some documentation. 2003-07-24 Gonzalo Paniagua Javier * libgda/gda-value.[ch]: const'ified. Removed some warnings. 2003-07-24 Gonzalo Paniagua Javier * lexer.l: * parser.y: * sql_display.c: * sql_parser.c: * sql_parser.h: * sql_tree.c: * sql_tree.h: patch from rodrigo to add initial 'delete' support. 2003-07-21 Juergen "George" Sawinski * configure.in: added missing LDAP_CFLAGS. 2003-07-15 Rodrigo Moya * libgda/gda-select.c (gda_select_run): implemented basic cases... (populate_from_single_table): ...like "select ... from table". 2003-07-11 Frederic Crozat * configure.in: Fixes compilation for x86-64 platform 2003-07-06 Rodrigo Moya Fixes #116758 * configure.in: conditionally define BUILD_RUN_TOOL if popt is found. * tools/Makefile.am: build gda-run conditionally. 2003-07-05 Rodrigo Moya * libgda/gda-xml-database.[ch] (gda_xml_database_get_version): (gda_xml_database_set_version): new functions. (gda_xml_database_new_from_uri): get the version number from the "database" XML node. (gda_xml_database_init): initialize "version" field. (gda_xml_database_finalize): free new field. (gda_xml_database_save): set the database version when saving. (gda_xml_database_to_string): added missing properties and nodes. * providers/xml/gda-xml-provider.c (gda_xml_provider_get_server_version): implemented. 2003-07-04 Rodrigo Moya * libgda/gda-batch.[ch]: * libgda/libgda.h: removed GdaBatch class from library. 2003-07-04 Rodrigo Moya * configure.in: * providers/Makefile.am: * providers/default/*: * providers/xml/*: renamed default provider to XML. 2003-07-03 Rodrigo Moya Released 0.90.0 2003-06-22 Rodrigo Moya * libgda/gda-value.[ch]: keep alphabetical sort. * libgda/gda-connection.h: added GDA_CONNECTION_OPTIONS_DONT_SHARE connection option. * libgda/gda-client.c: added more documentation. (gda_client_open_connection): if GDA_CONNECTION_OPTIONS_DONT_SHARE is specified in the connection options, don't reuse connections. * doc/C/tmpl/gda-client.sgml: * doc/C/tmpl/gda-command.sgml: * doc/C/tmpl/gda-config.sgml: * doc/C/tmpl/gda-connection.sgml: added more documentation. 2003-06-13 Guntupalli Karunakar * configure.in: Added "ml" in ALL_LINGUAS. 2003-06-12 Adam Williams * libgda.spec.in: added missing stanzas for MDB and LDAP packages. 2003-06-10 Abel Cheung * configure.in: Added "zh_TW" to ALL_LINGUAS. 2003-06-09 Rodrigo Moya * doc/C/libgda-docs.sgml: * doc/C/tmpl/gda-report-*.sgml: added missing libgda-report files. 2003-06-08 Rodrigo Moya Released 0.12.1 2003-06-03 David T Hollis * libgda.spec.in: fixed normal and build requirements. 2003-06-03 Steve Fosdick * Oracle Provider - fixed a statement handle leak which caused Oracle to run out of cursors. 2003-05-28 Rodrigo Moya Released 0.12.0 2003-05-28 Danilo Å egan * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS. 2003-05-26 Rodrigo Moya * libgda/gda-parameter.[ch] (gda_parameter_new_boolean): (gda_parameter_new_double): new functions. * configure.in: upped version numbers. 2003-05-13 Xabier Rodríguez Calvar * doc/C: some changes to make it more solid * libgda/gda-row.*: introduced G_CONST_RETURN in gda_row_get_value() to have the const in the doc but not in the real version * libgda/gda-parameter.*: removed gda_parameter_new(), adding gda_parameter_new_from_value() to make the API more solid and removed some checkings for null because they were not necessary. 2003-05-12 Sergey N. Belinsky * gda-ibmdb2-provider.c: * gda-ibmdb2-recordset.c: * gda-ibmdb2-types.c: fix for compile problem. 2003-05-10 Danilo Schoeneberg * configure.in: * providers/Makefile.am: * providers/msql/*: first version of mSQL provider. 2003-05-08 C.J. Collier * doc/C/libgda-docs.sgml: removed extra space in hyperlinks, some English corrections, and wrapped shell commands in tags to follow the common style. 2003-04-27 Steve Fosdick * Oracle Provider: fixed the recordset returned from get_schema(GDA_CONNECTION_SCHEMA_AGGREGATES) * Fixed some compiler warnings. 2003-04-20 Bodo Pfelzer * configure.in: fixed typo in MySQL library detection. 2003-04-20 Steve Fosdick * Oracle Provider: clean up type handling and add support for GDA_VALUE_TYPE_TIMESTAMP. 2003-04-19 Steve Fosdick * libgda/providers/oracle/gda-oracle-provider.c: Fixed a bug where the index data was not being correctly retreived including updating the get_oracle_index_data to take the name of the table owner for which it is to find index data. 2003-04-18 Steve Fosdick * Improved support for types and fixed bug which caused the Null? column to always show "Yes" regardless of whether nulls were actually allowed. 2003-04-18 Steve Fosdick * Oracle Provider - changed error handling - gda_oracle_check_result is now a macro rather than a function and therefore has access to the compiler __FILE__ and __LINE__ macros which are then included as part of the source or the error message. 2003-04-18 Steve Fosdick * libgda/providers/oracle/gda-oracle-provider.c: Fixed a bug in gda_oracle_provider_get_schema - previously a number of calls were made to the function get_oracle_objects which normally returns a GDA data model but which could return NULL, then an attempt was made to set of the first column of the retruned data model without checking for NULL. Now the title is set within get_oracle_objects which does check for NULL. 2003-04-18 Steve Fosdick * libgda/providers/oracle/gda-oracle-provider.c: Removed debugging messages and added local variable declaration for Emacs to help keep to the coding style. 2003-04-18 Steve Fosdick * libgda/providers/oracle/gda-oracle-provider.c: Fixed the handling of usernames and password so that if the username/password supplied at connection time is blank and so is the username/password obtained from the DSN the provider will try to connect to Oracle with a blank username/password rather than crash from trying to dereference a NULL pointer. 2003-04-16 Rodrigo Moya * libsql/Makefile.am: don't use the same source files for the library and the test program, link against the library instead. 2003-04-12 David T Hollis * libgda.spec.in: made it work on RH9. 2003-03-30 Mike Wingert * providers/sybase/*: fix for compile problem, related to changes in gda_row_new. 2003-03-27 Rodrigo Moya * configure.in: fixed typo in FreeTDS CFLAGS. 2003-03-26 Rodrigo Moya * configure.in: check for ODBC header files also. 2003-03-17 Gonzalo Paniagua Javier * providers/postgres/gda-postgres-provider.c: small fix by David Martin Carreño (david@aspl.es). 2003-03-16 Roozbeh Pournader * configure.in: Added "fa" to ALL_LINGUAS. 2003-03-12 Rodrigo Moya * providers/xbase/libmain.c (plugin_get_*): made name shorter and improved description. * providers/sybase/Makefile.am: added missing header file. 2003-03-12 David T Hollis * libgda.spec.in: Fix --with-tds & --without-tds to match what configure wants 2003-03-11 Gonzalo Paniagua Javier * libgda/gda-connection.c: check that xaction argument is a GdaTransaction in begin/commit/rollback. 2003-03-10 Gonzalo Paniagua Javier * providers/postgres/utils.c: fixes to timestamp parsing. 2003-03-09 Rodrigo Moya Released 0.11.0 2003-03-09 Akira Tagoh * configure.in: * providers/freetds/*: made it work with latest (0.61) FreeTDS. 2003-03-03 Rodrigo Moya * report/Makefile.am: added DTD_FILES to EXTRA_DIST. 2003-02-23 Santi Camps * libgda/report/Makefile.am: new dtd added * libgda/report/gda-report-result.dtd: new dtd for report results (after execution and before format) * libgda/report/libgda-report/Makefile.am: * libgda/report/libgda-report/gda-report.h: new sources added * libgda/report/libgda-report/gda-report-document.[ch]: DTD parameter optional * libgda/report/libgda-report/gda-report-types.[ch]: new read methods * libgda/report/libgda-report/gda-report-item.[ch]: * libgda/report/libgda-report/gda-report-item-detail.[ch]: added methods to retrieve childs sequentially * libgda/report/libgda-report/gda-report-result.[ch]: To obtain a report result from a report document (not working, just beginning) 2003-02-19 Steve Fosdick * Add minimal support for Oracle 9i. * configure.in: Changed to use the shared OCI client library. * providers/oracle/gda-oracle-*.c: worked around what appears to be a bug in pre-fetching in Oracle 9.2.0.2.0 2003-02-15 Gonzalo Paniagua Javier * providers/postgres/gda-postgres-provider.c: applied fix to get the correct password (thanks to david@aspl.es). 2003-02-11 Sergey N. Belinsky * providers/ibmdb2/gda-ibmdb2-types.[ch]: added support of BIGINT, REAL, DOUBLE, LONGVARCHAR, DATE, TIME and TIMESTAMP datatypes. * providers/ibmdb2/gda-ibmdb2-recordset.[ch]: fix bug with NULL return code in gda_ibmdb2_recordset_new. * providers/ibmdb2/gda-ibmdb2-provider.[ch]: added support of GDA_COMMAND_OPTION_STOP_ON_ERRORS in queries. * providers/ibmdb2/utils.c: fix bug with zero errors in list. * providers/ibmdb2/*.[ch]: in all sources of IBM DB2 provider removed C++ like comments (#105037). * testing/ibmdb2-test.[ch]: added some tests for IBM DB2 provider. 2003-02-08 Steve Fosdick * providers/oracle/gda-oracle-provider.[ch]: Introduced a default namespace for tables in which all the tables from ALL_TABLES are included, i.e. all those the user has privilege for, but when names clash the table in the user's own schema masks the other table(s). Uses a binary tree cache of table owners. 2003-02-06 Christian Neumair * providers/ldap/.cvsignore: Added. * providers/oracle/gda-oracle-provider.c: Fixed typo. 2003-02-03 Sergey N. Belinsky * providers/ibmdb2/*: added support for transactions, and schemas for aggregates, users, views, database, procedures, types, triggers and indexes. Added recordset class for IBM DB2. 2003-02-04 Akira TAGOH * don't use C++ comment in C sources/headers. it breaks the compilation with -ansi option. (#105037) 2003-02-01 Steve Fosdick * providers/oracle/gda-oracle-provider.c (gda_oracle_init_md_recset, gda_oracle_fill_md_data): fixed field descriptions. 2003-01-31 Gonzalo Paniagua Javier * libgda/gda-client.c: unref the weak references to avoid hash table corruption when unref on the provider (which ends up removing the providers in the hash table while inside another g_hash_table_foreach). 2003-01-31 Steve Fosdick * providers/oracle/utils.c (gda_oracle_set_value): remove trailing spaces from strings read from the database. 2003-01-28 Yanko Kaneti * libgda.spec.in: added --without flags. 2003-01-28 Rodrigo Moya * libgda.spec.in: removed idl directory. 2003-01-27 Rodrigo Moya Released 0,10.0 2003-01-28 Gonzalo Paniagua Javier * providers/odbc/gda-odbc-provider.c: * providers/odbc/gda-odbc-recordset.c: * providers/odbc/gda-odbc.h: * providers/odbc/utils.c: removed config.h. 2003-01-27 Santi Camps * libgda/report/libgda-report/Makefile.am: * libgda/report/libgda-report/gda-report.h: new sources added * libgda/report/testing/gda-report-test.c: some new tests added * libgda/report/libgda-report/gda-report-item.[ch]: new generical functions needed to manage the internal structure * libgda/report/libgda-report/gda-report-types.c: new constant ITEM_SQLQUERY_NAME * libgda/report/libgda-report/gda-report-item-report.c: allow set/get sqlqueries, detail and repfields * libgda/report/libgda-report/gda-report-item-pagefooter.[ch]: * libgda/report/libgda-report/gda-report-item-pageheader.[ch]: * libgda/report/libgda-report/gda-report-item-reportfooter.[ch]: * libgda/report/libgda-report/gda-report-item-reportheader.[ch]: allow to work with repfields * libgda/report/libgda-report/gda-report-item-sqlquery.[ch]: * libgda/report/libgda-report/gda-report-item-detail.[ch]: * libgda/report/libgda-report/gda-report-item-repfield.[ch]: All attributes implemented 2003-01-26 Rodrigo Moya * libgda/gda-value.c (gda_value_stringify): use a fixed number of decimal positions for float/double numbers. 2003-01-26 Christian Neumair * providers/default/libmain.c (plugin_get_name): Marked "Default" for translation. 2003-01-26 Rodrigo Moya * libgda/gda-client.h: added new event types. * libgda/gda-client.c (gda_client_notify_error_event): (gda_client_notify_connection_opened_event): (gda_client_notify_connection_closed_event): (gda_client_notify_transaction_started_event): (gda_client_notify_transaction_committed_event): (gda_client_notify_transaction_cancelled_event): new functions. (connection_error_cb, gda_client_open_connection): use the new gda_client_notify_* functions to notify events. * libgda/gda-connection.c (gda_connection_finalize, gda_connection_new, gda_connection_begin_transaction, gda_connection_commit_transaction, gda_connection_rollback_transaction): use the new gda_client_notify_* functions to notify events. 2003-01-23 Santi Camps * libgda/report/libgda-report/Makefile.am: * libgda/report/libgda-report/gda-report.h: new sources added * libgda/report/testing/gda-report-test.c: some new tests added * libgda/report/libgda-report/gda-report-item.[ch]: new generical functions needed to manage the internal structure * libgda/report/libgda-report/gda-report-item-report.c: not allow child elements if parent element doesn't belong to a report-document * libgda/report/gda-report.dtd.in: added suport for multiple queries, and for both xql and sql queries * libgda/report/testing/valid-example.xml: * libgda/report/testing/non-valid-example.xml: * libgda/report/gda-report-example.xml: modified due to changes in DTD * libgda/report/libgda-report/gda-report-item-pageheader.[ch]: * libgda/report/libgda-report/gda-report-item-pagefooter.[ch]: * libgda/report/libgda-report/gda-report-item-repotheader.[ch]: * libgda/report/libgda-report/gda-report-item-repotfooter.[ch]: functions to allow work with reportelements and _remove function * libgda/report/libgda-report/gda-report-item-label.[ch]: All attributes implemented 2003-01-22 Rodrigo Moya * libgda/gda-value.[ch] (gda_value_new_timestamp_from_timet): new function. 2003-01-20 Rodrigo Moya * configure.in: require MDB's SQL interface. * libgda/gda-field.[ch] (gda_field_attributes_get_position, gda_field_attributes_set_position): new functions. (gda_field_attributes_copy): copy the new structure's member. * libgda/gda-table.c (gda_table_add_field): set table name and position on the field attributes. (gda_table_describe_column): added missing code. * providers/mdb/gda-mdb.h: included mdbsql.h. * providers/mdb/libmain.c (g_module_check_init, g_module_unload): added GModule load/unload functions, and initialize/cleanup MDB's SQL interface on them. * providers/mdb/gda-mdb-provider.[ch] (gda_mdb_provider_execute_sql): new function for executing SQL commands. (gda_mdb_provider_execute_command): implemented. 2003-01-19 Gonzalo Paniagua Javier * testing/postgres-test.c: fixed child table name. 2003-01-19 Santi Camps * libgda/report/testing/gda-report-test.c: some new tests added * libgda/report/libgda-report/Makefile.am: new sources added * libgda/report/libgda-report/gda-report.h: new sources added * libgda/report/libgda-report/gda-report-item-report.c: Set and get pageheaders and pagefooters * libgda/report/libgda-report/gda-report-item-report.c: * libgda/report/libgda-report/gda-report-item-reportheader.c: * libgda/report/libgda-report/gda-report-item-reportfooter.c: * libgda/report/libgda-report/gda-report-types.c: All constants for each item name moved to gda-report-types.c * libgda/report/libgda-report/gda-report-item-pageheader.[ch]: All attributes implemented * libgda/report/libgda-report/gda-report-item-pagefooter.[ch]: All attributes implemented 2003-01-19 Gonzalo Paniagua Javier * libgda/gda-client.c: use g_hash_table_foreach_remove instead of removing the hash entry inside remove_provider_in_hash (tracked down with Rodrigo). * libgda/gda-connection.c: * providers/freetds/gda-freetds-provider.c: * providers/mysql/gda-mysql-provider.c: * providers/mysql/libmain.c: * providers/oracle/gda-oracle-provider.c: * providers/oracle/libmain.c: * providers/sybase/gda-sybase-provider.c: unified the parameter name for the user (USER instead of USERNAME). * providers/postgres/gda-postgres-provider.c: 'username' and 'password' arguments take precedence over the ones in the provider configuration. 2003-01-18 Rodrigo Moya Fixes #102024 * libgda/gda-value.[ch]: added money type. (gda_value_new_money, gda_value_get_money, gda_value_set_money): new functions. (set_from_string, gda_value_is_number, gda_value_copyi, gda_value_set_from_value, gda_value_stringify, gda_value_compare): take the new type into account. 2003-01-18 Rodrigo Moya Fixes #95959 * providers/default/libmain.c: * providers/firebird/libmain.c: * providers/freetds/libmain.c: * providers/ibmdb2/libmain.c: * providers/ldap/libmain.c: * providers/mdb/libmain.c: * providers/mysql/libmain.c: * providers/odbc/libmain.c: * providers/oracle/libmain.c: * providers/postgres/libmain.c: * providers/sqlite/libmain.c: * providers/sybase/libmain.c: * providers/xbase/libmain.c: removed GDA/libgda from user-visible strings. 2003-01-18 Rodrigo Moya * providers/mysql/libmain.c (plugin_get_connection_params): added USE_SSL parameter for the MySQL provider. Also, removed unused FLAGS parameter. * providers/mysql/gda-mysql-provider.c (gda_mysql_provider_open_connection): added support for SSL connections and fixed #93925. 2003-01-18 Santi Camps * configure.in: added libgda/report/testing/Makefile * report/Makefile.am: added subdir testing * report/*: * report/libgda-report/*: * report/testing/*: Changed my contact e-mail to santi@gnome-db.org * report/testing/gda-report-test.c: some new tests * report/libgda-report/Makefile.am: new sources added * report/libgda-report/gda-report.h: new sources added * report/libgda-report/gda-report-item.[ch]: new functions to add sibling items and to replace items * report/libgda-report/gda-report-item-report.c: Set and get reportheader and reportfooter * report/libgda-report/gda-report-item-reportheader.[ch]: All attributes implemented * report/libgda-report/gda-report-item-reportfooter.[ch]: All attributes implemented 2003-01-17 Rodrigo Moya * libgda/gda-data-model-array.c (gda_data_model_array_append_row): passed the correct row number to gda_data_model_row_inserted. 2003-01-17 Nick Gorham * providers/odbc/*: updated version of the ODBC provider. 2003-01-16 Rodrigo Moya * libgda/gda-parameter.[ch] (gda_parameter_new_gobject): new function. * libgda/gda-client.h: updated argument names for events. Removed "error" signal, now obsoleted by "event_notification". * libgda/gda-client.c (connection_error_cb): pass a GdaError object as the parameter for the GDA_CLIENT_EVENT_ERROR event. Don't emit "error" signal. (gda_client_open_connection): no parameters for CONNECTION_OPENED event. (gda_client_class_init): don't create "error" signal. * libgda/gda-connection.c (gda_connection_finalize, gda_connection_new): no parameters for CONNECTION_OPENED/CONNECTION_CLOSED events. . 2003-01-16 Rodrigo Moya * libgda/gda-value.h: added GDA_VALUE_TYPE_GOBJECT type. * libgda/gda-value.c (gda_value_new_gobject, gda_value_get_gobject, gda_value_set_gobject): new functions. (clear_value, gda_value_copy, gda_value_set_from_value, gda_value_stringify, gda_value_compare): take into account the new type. * providers/xbase/gda-xbase-database.cpp: fixed xbase header file. 2003-01-16 Rodrigo Moya * libgda/gda-data-model.c (gda_data_model_to_xml_node): added the model data to the returned XML node. 2003-01-16 Rodrigo Moya * libgda/gda-xml-database.[ch] (gda_xml_database_to_string): new function. * libgda/gda-data-model.c (gda_data_model_to_xml): implemented (only the standalone=TRUE case). * doc/C/*: new documentation added. 2003-01-16 Gonzalo Paniagua Javier * configure.in: removed config.h. * libgda/gda-batch.c: * libgda/gda-client.c: * libgda/gda-config.c: * libgda/gda-connection.c: * libgda/gda-error.c: * libgda/gda-export.c: * libgda/gda-init.c: * libgda/gda-log.c: * libgda/gda-server-provider.c: * libgda/gda-table.c: * libgda/gda-value.c: * libgda/gda-xml-database.c: * providers/default/gda-default-provider.c: * providers/default/gda-default.h: * providers/firebird/gda-firebird-provider.c: * providers/freetds/gda-freetds-message.c: * providers/freetds/gda-freetds-message.h: * providers/freetds/gda-freetds-provider.c: * providers/freetds/gda-freetds-provider.h: * providers/freetds/gda-freetds-recordset.c: * providers/freetds/gda-freetds-types.c: * providers/freetds/gda-freetds-types.h: * providers/freetds/gda-freetds.h: * providers/freetds/gda-tds-schemas.h: * providers/freetds/utils.c: * providers/ibmdb2/gda-ibmdb2-provider.c: * providers/ibmdb2/gda-ibmdb2.h: * providers/ibmdb2/utils.c: * providers/ldap/gda-ldap-provider.c: * providers/ldap/gda-ldap-recordset.c: * providers/ldap/gda-ldap.h: * providers/mdb/gda-mdb-provider.c: * providers/mdb/gda-mdb-table.c: * providers/mdb/gda-mdb.h: * providers/mysql/gda-mysql-provider.c: * providers/mysql/gda-mysql-recordset.c: * providers/mysql/gda-mysql.h: * providers/odbc/gda-odbc.h: * providers/oracle/gda-oracle-provider.c: * providers/oracle/gda-oracle-recordset.c: * providers/oracle/gda-oracle.h: * providers/oracle/utils.c: * providers/postgres/gda-postgres-provider.c: * providers/postgres/gda-postgres-recordset.c: * providers/postgres/gda-postgres.h: * providers/postgres/utils.c: * providers/sqlite/gda-sqlite-provider.c: * providers/sqlite/gda-sqlite-recordset.c: * providers/sqlite/utils.c: * providers/sybase/gda-sybase-provider.c: * providers/sybase/gda-sybase-provider.h: * providers/sybase/gda-sybase-recordset.c: * providers/sybase/gda-sybase-schemas.h: * providers/sybase/gda-sybase-types.c: * providers/sybase/gda-sybase-types.h: * providers/sybase/gda-sybase.h: * providers/sybase/main.c: * providers/sybase/utils.c: * providers/xbase/gda-xbase-provider.c: * report/libgda-report/gda-report-document.c: * report/libgda-report/gda-report-item-report.c: * report/libgda-report/gda-report-item-reportheader.c: * report/libgda-report/gda-report-item.c: * report/libgda-report/gda-report-types.c: * report/libgda-report/gda-report-valid.c: * testing/client.c: * testing/config.c: * testing/gda-test.c: * tools/gda-run.c: removed config.h. * tools/Makefile.am: * providers/default/Makefile.am: * report/testing/Makefile.am: * testing/Makefile.am: * providers/oracle/Makefile.am: * providers/ldap/Makefile.am: $(top_srcdir) and $(top_buildir) are now teh first ones in INCLUDE. 2003-01-15 Rodrigo Moya * libgda/gda-client.c (gda_client_class_init): use G_TYPE_INT instead of G_TYPE_ENUM. * providers/mdb/gda-mdb-provider.c (gda_mdb_provider_begin_transaction, gda_mdb_provider_commit_transaction, gda_mdb_provider_rollback_transaction): call add_error_string instead of add_error. * providers/ldap/gda-ldap-provider.c (get_ldap_tables): return the correct number of columns for the TABLES schema. 2003-01-15 Rodrigo Moya * libgda/gda-marshal.list: added new marshal function. * libgda/gda-client.[ch]: added GdaClientEvent enum type. (gda_client_notify_event): new function. (gda_client_class_init): added "event_notification" signal. (gda_client_open_connection): added notification of events. (emit_client_error): use connection_error_cb. (connection_error_cb): notify ERROR action (to replace the "error" signal in GdaClient soon). * libgda/gda-connection.c (gda_connection_finalize, gda_connection_new): added notification of events. 2003-01-15 German Poo-Caaman~o * configure.in: Added LDAP files check. * providers/Makefile.am: Added conditional LDAP build * providers/ldap: * providers/ldap/gda-ldap.h: * providers/ldap/gda-ldap-provider.[ch]: * providers/ldap/gda-ldap-recordset.[ch]: * providers/ldap/libmain.c: * providers/ldap/utils.c: Added LDAP provider. Currently supports open_connection, close_connection, providers_supports, get_database, get_schema, get_version, get_server_version. LDAP doesn't support transation, but begin_transaction, rollback_transaction and commit_transaction are implemented in a simple way. 2003-01-15 Rodrigo Moya * libgda/gda-log.c: use syslog for log messages. * providers/mdb/gda-mdb-provider.c (gda_mdb_provider_get_database): implemented. (gda_mdb_provider_begin_transaction, gda_mdb_provider_commit_transaction, gda_mdb_provider_rollback_transaction): added error about transactions not being supported. (gda_mdb_provider_supports): added more features we support. (get_mdb_databases): implemented DATABASES schema. (get_mdb_fields): implemented FIELDS schema. 2003-01-13 Gonzalo Paniagua Javier * libgda/gda-client.c: don't unref the providers twice. Fixed with Rodrigo's help. 2003-01-13 Rodrigo Moya * libgda/gda-log.c (gda_log_error, gda_log_message): use g_strdup_printf instead of vprintf. 2003-01-13 Gonzalo Paniagua Javier * providers/postgres/gda-postgres-provider.c: * providers/postgres/gda-postgres-recordset.c: * providers/postgres/gda-postgres.h: * providers/postgres/utils.c: added support for 'bytea' type fields as GDA_VALUE_TYPE_BINARY. * testing/postgres-test.c: added new 'bytea' field to test and display errors when some statement fails. 2003-01-10 Santi Camps * libgda/report/Makefile.am: install gda-report.dtd to \$(datadir)/libgda/xml instead of \$(datadir)/libgda/dtd * libgda/report/gda-report-example.xml: added a sql query to be well formed against the .dtd * libgda/report/gda-report.dtd.in: some little changes to simplify the use of libxml * libgda/report/testing/*: a simple program to make some tests * libgda/report/libgda-report/Makefile.am: some new files added * libgda/report/libgda-report/gda-report-document.[ch]: changed. Now it manages the report as a document, but not the root element "report" * libgda/report/libgda-report/gda-report-types.h: most of types removed, and now validated against the .dtd * libgda/report/libgda-report/gda-report.h: some new files added * libgda/report/libgda-report/gda-report-item.[ch]: implemented a generic item of the report. Each element of the report will inherit from it * libgda/report/libgda-report/gda-report-valid.[ch]: implemented some validations against the .dtd * libgda/report/libgda-report/gda-report-item-report.[ch]: implemented the report root element "report" * libgda/report/libgda-report/gda-report-item-reportheader.[ch]: implemented the report item "reportheader" 2003-01-10 Rodrigo Moya * providers/mdb/gda-mdb-provider.c (get_mdb_procedures): implemented GDA_CONNECTION_SCHEMA_PROCEDURES. (gda_mdb_provider_open_connection): read the all catalogs. (gda_mdb_provider_get_server_version): adapted to mdb-tools CVS. 2003-01-09 Rodrigo Moya Fixes #87321 * libgda/gda-row.[ch] (gda_row_new, gda_row_new_from_list): added a #GdaDataModel argument, so that implementations can associate the GdaRow with the GdaDataModel that contains it. * libgda/gda-data-model.c (gda_data_model_foreach): * libgda/gda-data-model-array.c (gda_data_model_array_append_row): * libgda/gda-data-model-hash.c (gda_data_model_hash_append_row): * providers/freetds/gda-freetds-recordset.c (gda_freetds_get_current_row): * providers/mysql/gda-mysql-recordset.c (fetch_row, gda_mysql_recordset_append_row): * providers/oracle/gda-oracle-recordset.c (fetch_row, gda_oracle_recordset_append_row): * providers/postgres/gda-postgres-recordset.c (get_row): * providers/sqlite/gda-sqlite-recordset.c (get_row): adapted to changes in gda_row_new. 2003-01-09 Rodrigo Moya * providers/mysql/gda-mysql-provider.c (gda_mysql_provider_begin_transaction): (gda_mysql_provider_commit_transaction): (gda_mysql_provider_rollback_transaction): don't allow transactions in read-only connections. * providers/oracle/gda-oracle-provider.c (gda_oracle_provider_begin_transaction): (gda_oracle_provider_commit_transaction): (gda_oracle_provider_rollback_transaction): ditto. * providers/sqlite/gda-sqlite-provider.c (gda_sqlite_provider_begin_transaction): (gda_sqlite_provider_commit_transaction): (gda_sqlite_provider_rollback_transaction): ditto. 2003-01-09 Rodrigo Moya Fixes #78847 * libgda/gda-connection.c (gda_connection_get_options): added missing function. * providers/mysql/gda-mysql-provider.c (process_sql_commands): added ugly hack to avoid execution of modification commands on read-only connections. 2003-01-09 Rodrigo Moya * libgda/gda-client.c (gda_client_open_connection): made all GModule's we load resident, to avoid registration problems with types defined in them. (provider_weak_cb): added weak reference callback for controlling the lifetime of all the providers we load. 2003-01-06 Holger Thon * configure.in: freetds include fix for redhat * providers/freetds/gda-freetds-provider.[ch]: server id renamed 2003-01-04 Gonzalo Paniagua Javier * tools/Makefile.am: added gda-config.5. * tools/gda-config.5: manual page for configuration file. 2003-01-02 David Hollis * libgda.spec.in: added build requirements for gda-sqlite and man page for gda-config-tool. 2002-12-29 Rodrigo Moya * configure.in: * acconfig.h: s/INTERBASE/FIREBIRD. * providers/interbase/*: moved... * providers/firebird/*: ...to here, since we will be supporting FireBird, the community-based version of Interbase. 2002-12-28 Rodrigo Moya * libgda/gda-data-model.c (gda_data_model_describe_column): don't call gda_data_model_get_column_title, to avoid circular calls between the 2 functions. Should fix #102131. * libgda/gda-table.[ch] (gda_table_get_name, gda_table_set_name): new functions. * providers/mdb/gda-mdb-table.[ch]: added implementation of data data models based on the tables from the MdbHandle structure. * providers/mdb/gda-mdb-provider.c (get_mdb_tables): use correct value types for schema data model. * providers/mdb/util.c (gda_mdb_type_to_gda): new function. 2002-12-27 Rodrigo Moya * providers/mdb/gda-mdb-provider.c (gda_mdb_provider_supports): added implemention for provider method. 2002-12-27 Vivien Malerba * providers/postgres/gda-postgres-provider.c: merged a patch provided by Santi Camps for bug #101642 2002-12-26 Rodrigo Moya * providers/mdb/gda-mdb-provider.c (get_mdb_types): implemented TYPES schema. 2002-12-26 Rodrigo Moya * providers/mdb/gda-mdb-provider.c (gda_mdb_provider_get_database, gda_mdb_provider_change_database, gda_mdb_provider_create_database, gda_mdb_provider_drop_database): added missing methods. (get_mdb_tables): included all missing schema information. * libgda/gda-table.c: fixed typo in PARENT_TYPE #define (now really subclassing GdaDataModelArray, and not GdaDataModel. 2002-12-23 Rodrigo Moya * providers/xbase/gda-xbase-provider.c (gda_xbase_provider_open_connection): added the connection to the hash table of databases, and added code to read all .mdb files in the specified directory. 2002-12-22 Rodrigo Moya * testing/client.c (open_connection): added missing schemas. 2002-12-20 Rodrigo Moya * libgda/gda-data-model-hash.c (gda_data_model_hash_append_row, gda_data_model_hash_insert_row): emit more fine-grained modification signals. 2002-12-19 Holger Thon * providers/sybase/gda-sybase{.h,-schemas.h}: separated schemas from freetds provider * providers/freetds/gda-freetds-provider.[ch]: fixed charset setting, implemented get_database (hoping mssql has the same builtin function) * providers/freetds/gda-tds-schemas.h: Fixed attribute types of schema queries, though this did not fix bug #101353 2002-12-19 Rodrigo Moya * libgda/gda-row.[ch] (gda_row_get_number, gda_row_set_number): new functions. * libgda/gda-data-model.[ch]: added "row_inserted", "row_removed" and "row_updated" signals. (gda_data_model_row_inserted): (gda_data_model_row_updated): (gda_data_model_row_removed): new functions to emit the new signals. * libgda/gda-data-model-array.c (gda_data_model_array_append_row, gda_data_model_remove_row): emit more fine-grained modification signals. * libgda/gda-data-model-list.c (gda_data_model_list_init): connect to signals on the internal data model. (proxy_changed_cb, proxy_row_inserted_cb, proxy_row_updated_cb, proxy_row_removed_cb): callbacks for proxying the internal data model's signals. 2002-12-18 Vivien Malerba * providers/postgres/libmain.c: added a connection parameter to specify a "search_path" (which is a list of Postgres's 7.3 schemas separated by a comma where database objects can be found). This parameter has no effect when connecting to postgres versions prior to 7.3. * providers/postgres/gda-postgres-provider.c: implemented most of the schemas for postgres 7.3 (the only remaining is for the references). * providers/postgres/gda-postgres-provider.h: added two fields to the private structure to hold strings of data types that are considered to be Postgres internal only (one string for plain data type names and one for the OIDs versions). 2002-12-16 Christian Neumair * providers/sybase/gda-sybase-provider.c: Fixed typo. 2002-12-16 Rodrigo Moya Should fix #101046 * providers/oracle/gda-oracle-provider.c (get_oracle_tables): use double quotes instead of single quotes for aliases in SELECT command. 2002-12-16 Holger Thon Fixes translation bugs: #101084, #101085, #101087, #101088 * providers/sybase/gda-sybase-{provider,recordset}.c, providers/sybase/utils.c: gettext fixes 2002-12-15 Vivien Malerba * providers/postgres/gda-postgres-provider.c: implemented the tables schema list for Postgres 7.3 and started the aggregates 2002-12-15 Rodrigo Moya * libgda/gda-connection.h: added SCHEMA_LANGUAGES to GdaConnectionSchema enumeration. 2002-12-15 Rodrigo Moya Fixes #101085 * providers/sybase/gda-sybase-provider.c (gda_sybase_provider_get_database): fixed typo. 2002-12-15 Rodrigo Moya Fixes #101084 * providers/sybase/gda-sybase-provider.c (gda_sybase_execute_cmd): don't mark function names for translation. 2002-12-13 Vivien Malerba * libgda/gda-value.c: corrected a localization bug in the gda_value_to_xml () function. * providers/postgres/gda-postgres-provider.c: started to implement the changes to handle the Postgres 7.3 "schemas" features. * libgda/gda-connection.h: added a new feature enum (GDA_CONNECTION_FEATURE_NAMESPACES) and a new schemas enum (GDA_CONNECTION_SCHEMA_NAMESPACES). * doc/C/libgda-docs.sgml: updated the documentation for the "namespaces" (Postgres's 7.3 new schemas feature) 2002-12-13 Rodrigo Moya Fixes #101118 * configure.in: * Makefile.am: removed IDL dir from the build. 2002-12-10 Rodrigo Moya Fixes #97669 (Oracle part) * gda-oracle-connection.c (get_oracle_objects): added a 'nargs' argument to get the number of fields that are expected to be returned in the data model, so that we always return the correct number (very temporary fix until we really implement all schemas). (gda_oracle_provider_get_schema): use new argument in get_oracle_objects(). 2002-12-10 Holger Thon * providers/freetds/gda-tds-{schemas.h,types.c}: * providers/freetds/gda-freetds-provider.[ch]: fixed types schema, get_server_version * providers/freetds/gda-freetds-recordset.c: fixed datamodel return for queries without result * testing/freetds-test.c: activated freetds provider checks again * providers/sybase/gda-sybase-provider.c: null-length password fix 2002-12-09 Holger Thon * providers/freetds/gda-tds-schemas.h: corrected users schema * providers/sybase/gda-sybase-provider.[ch]: finished basic connection code and schema implementation * providers/sybase/gda-sybase-types.[ch]: type conversion added * providers/sybase/gda-sybase-recordset.[ch]: implementation of proceeding row results * providers/sybase/utils.c, providers/sybase/gda-sybase.h: added logging/error help functions * providers/sybase/Makefile.am: commit of scheduled sybase provider * testing/sybase-test.[ch], testing/Makefile.am, testing/client.c: Added sybase provider tests 2002-11-28 Rodrigo Moya * libgda/gda-init.c (gda_init): removed debug messages. 2002-11-25 Rodrigo Moya * providers/xbase/gda-xbase-provider.[ch]: implementation of the GdaServerProvider-based class for the XBase provider. * providers/xbase/gda-xbase-database.[ch]: implementation of DBF file access. * providers/libmain.c: GModule functions for provider. * providers/xbase/Makefile.am: setup for new xbase provider. * providers/Makefile.am: added xbase directory to SUBDIRS. * configure.in: added providers/xbase directory and test for XBase headers and libraries. 2002-11-12 Rodrigo Moya Fixes #96810 * providers/oracle/gda-oracle-provider.c (get_oracle_tables): added missing commas to SQL command. 2002-11-12 Rodrigo Moya * data/Makefile.am: EXTRA_DIST XML data. 2002-11-09 Rodrigo Moya * data/Makefile.am: EXTRA_DIST the config file. 2002-11-09 Santi Camps * data/Makefile.am: install XML files. 2002-11-08 Rodrigo Moya Fixes #97997 * libgda.spec.in: removed obsolete requirements. 2002-11-08 Gonzalo Paniagua Javier * libgda/gda-config.c: save/restore previous memory management functions in libxml. 2002-11-07 Gonzalo Paniagua Javier * libgda/gda-config.c: (parse_config_file): setup libxml2 memory functions. Ignore other sections than '/apps/libgda/Datasources' (they are not written again to the file). Don't add empty sections. (gda_config_remove_key): when removing a key, remove also the section if it gets empty. 2002-11-07 Gonzalo Paniagua Javier * doc/C/libgda-docs.sgml: fixed tutorial example. Thanks to calvaris and others for pointing this out. * libgda/gda-row.c: added comment to the documentation of gda_row_get_value. 2002-11-07 Gonzalo Paniagua Javier * libgda/gda-client.c: check that provider is not null before doing the lookup. 2002-11-05 Gonzalo Paniagua Javier * libgda/gda-config.c: avoid "no DTD" message from libxml. 2002-11-05 Holger Thon * configure.in: Added check for sybase OCli in OCS subdir * providers/sybase/libmain.c: added LOCALE parameter * providers/sybase/gda-sybase-provider.c: added provider_new, shortened open_connection by gda_sybase_connection_data_free, added LOCALE parameter, added debug messages, finished open_connection * providers/sybase/gda-sybase.h, providers/sybase/utils.c: added ocli message callbacks for displaying errors, fixed sybase_debug_msg() * providers/sybase/gda-sybase-provider.h: added CS_GDA_VERSION (define for latest detectable cs version) * testing/client.c(test_client): fixed connection to be opened with password of GdaDataSourceInfo instead of empty pwd ("") 2002-11-01 Cleber Rodrigues * providers/mysql/gda-mysql-provider.c: added missing mysql_init() on the initialization of the connection structure. 2002-11-01 Holger Thon * providers/freetds/gda-freetds-provider.c: setting datamodel column titles of schemas moved to gda-tds-schemas.h * providers/freetds/gda-tds-schemas.h: started making schemas compatible with mergeant again 2002-10-30 Holger Thon * configure.in: added library collision check against freetds ct, added lookup for ase 12.5 sybase dir, added SYBASE_DIR variable * providers/sybase/Makefile.am: removed gda-tds-schemas.h * providers/sybase/gda-sybase-provider.c: added dummy provider functions * providers/sybase/gda-sybase.h, providers/sybase/utils.c: added sybase_debug_msg() * providers/freetds/*.{c,h}: fixed include of config.h depend on HAVE_CONFIG_H define * providers/freetds/gda-tds-schemas.h: added query for server version 2002-10-29 Rodrigo Moya * libgda/gda-connection.[ch] (gda_connection_new): added GdaConnectionOptions argument. (gda_connection_get_options): new function. * libgda/gda-server-provider.[ch] (gda_server_provider_open_connection): * libgda/gda-client.[ch] (gda_client_open_connection, gda_client_open_connection_from_string): added GdaConnectionOptions argument. * testing/client.c (open_connection): adapted to changes in gda_client_open_connection. * configure.in: changed sonum. 2002-10-29 Rodrigo Moya Fixes #96810 * providers/oracle/gda-oracle-provider.c (get_oracle_tables): separated retrieval of table schema, and added all missing fields. * providers/mysql/gda-mysql-provider.c (get_mysql_tables): set column titles on the data model being created. 2002-10-29 Holger Thon * providers/freetds/gda-freetds-provider.c (get_schema): users schema fixed * providers/sybase/Makefile.am, providers/sybase/gda-sybase-provider.{c,h}, providers/sybase/gda-sybase.h, providers/sybase/libmain.c: started port of sybase provider 2002-10-29 Gonzalo Paniagua Javier * libsql/parser.y: a couple of fixes to make bison not to complain. 2002-10-28 Rodrigo Moya Fixes #95985 * configure.in: libmystrings is not needed for MySQL provider. 2002-10-26 Rodrigo Moya * providers/interbase/gda-interbase-provider.c (gda_interbase_connection_make_error): new function. (gda_interbase_command_get_transaction): new function. (gda_interbase_provider_open_connection): call the above function for any database-related errors. (gda_interbase_provider_create_database): implemented. * providers/interbase/gda-interbase-recordset.[ch]: recordset implementation for the Interbase provider. 2002-10-25 Rodrigo Moya Fixes #96758 * libgda/Makefile.am: moved top_srcdir to the top in INCLUDES. 2002-10-23 Rodrigo Moya Released 0.8.199 2002-10-23 Holger Thon * providers/freetds/gda-freetds-provider.c: fixed dlopen() bug which made loading the provider fail with freetds 0.6x * configure.in: Removed freetds v0.60 warning 2002-10-16 Rodrigo Moya * providers/interbase/Makefile.am: * providers/interbase/gda-interbase-provider.[ch]: * providers/interbase/libmain.c: started GNOME 2 version of the Interbase provider. * providers/gda-oracle-provider.c (gda_oracle_provider_get_version): (gda_oracle_provider_get_server_version): implemented missing methods. 2002-10-13 Holger Thon * providers/freetds/gda-freetds-provider.h: added TDS_CONTEXT (v0.60) to GdaFreeTDSConnectionData struct * providers/freetds/gda-freetds-provider.c: added v0.60 api, fixed compile warnings (unused enums vals in switches), fixed change_database to work within connection_open(), corrected typecast in execute_cmd(), completed error messages in internal execute_cmd() * providers/freetds/gda-freetds-recordset.c: added parameter GdaFreeTDSConnectionData * to set_gdavalue * providers/freetds/gda-freetds-types.{c,h}: added parameter GdaFreeTDSConnectionData * to set_gdavalue, added v0.60 api * acconfig.h, configure.in: added version check for freetds provider 2002-10-12 Alfons * libgda/gda-select.c (gda_select_run): use sql_destroy instead of sql_statement_destroy. 2002-10-12 Rodrigo Moya * libgda/gda-select.c (gda_select_run): commented out call to sql_statement_destroy, since this function seems to be missing in libsql. 2002-10-10 Rodrigo Moya * libgda/gda-select.c: changed the list of source data models to be a hash table, for better searching. Added 'changed' member to keep track of changes in the data. (free_source_model): new function to free the hash table's items. (gda_select_add_source): added 'name' parameter so that data models are uniquely identified. Set the 'changed' member when actually making a change. (gda_select_set_sql): Set the 'changed' member. 2002-10-10 Rodrigo Moya * libgda/gda-select.[ch] (gda_select_add_source): new function. * libgda/gda-client.[ch]: added support for using it as a connection stack. That is so that clients can make operations (search for a table, run transactions, etc) on a group of connections. (gda_client_begin_transaction, gda_client_commit_transaction, gda_client_rollback_transaction): support for distributed (many DB connections) transactions. (gda_client_open_connection): removed unused variable. * doc/C/tmpl/*: updated. 2002-10-06 Rodrigo Moya Fixes #94845 * configure.in: made use of scrollkeeper optional. 2002-10-02 Rodrigo Moya * libgda/gda-field.[ch] (gda_field_attributes_copy): new function. * libgda/gda-select.[ch]: modified to accept a list of data models and to work with SQL commands and not expressions. 2002-10-01 Rodrigo Moya * tools/Makefile.am: autoconf does not support EXTRA_DIST to be defined conditionally. 2002-09-30 Rodrigo Moya * doc/libgda-C.omf.in: fixed path to documentation. 2002-09-30 Stanislav Brabec * configure.in: Added cs to ALL_LINGUAS. 2002-09-29 Gonzalo Paniagua Javier * tools/Makefile.am: install man page. * tools/gda-config-tool.1: initial man page for gda-config-tool. Still need to document the usage in interactive mode. 2002-09-28 Gonzalo Paniagua Javier * configure.in: fixed variable name and added /usr/local to SQLite auto-search. Thanks to Vladimir Vukicevic. 2002-09-26 Rodrigo Moya * bindings/c++/*: removed obsolete bindings. Current ones are in gtkmm sources, for which we need a volunteer. 2002-09-25 Rodrigo Moya * libgda/gda-client.c (emit_client_error): new function for emitting error signals on the GdaClient objects. (gda_client_open_connection): call emit_client_error everytime there is an error, so that clients really get informed. * doc/libgda-C.omf.in: validated this file (thanks to Frederic Crozat) 2002-09-24 Rodrigo Moya * providers/sqlite/gda-sqlite-provider.c (gda_sqlite_provider_supports): we also support triggers. (get_types): implemented types schema. (get_tables): implemented tables schema. (get_table_fields): implemented fields schema. * providers/sqlite/gda-sqlite-provider.c (get_row): get correctly the fields' values from the SQLITEresult structure. (gda_sqlite_recordset_describe_column): set more properties on the returned GdaFieldAttributes. 2002-09-23 Rodrigo Moya * providers/sqlite/gda-sqlite-provider.c (gda_sqlite_provider_get_version, gda_sqlite_provider_get_server_version, gda_sqlite_provider_change_database): implemented missing methods. (gda_sqlite_provider_open_connection): free all memory if there are errors. (gda_sqlite_provider_close_connection): add an error to the connection when there are errors. (gda_sqlite_provider_execute_command): process correctly lists of colon-separated table names for GDA_COMMAND_TYPE_TABLE. (gda_sqlite_provider_begin_transaction, gda_sqlite_provider_commit_transaction, gda_sqlite_provider_rollback_transaction): implemented. (gda_sqlite_provider_single_command): deal correctly with return value of sqlite_exec. (gda_sqlite_provider_supports): added missing features. 2002-09-22 Gonzalo Paniagua Javier * libgda/gda-config.c: fixed a couple of leaks. 2002-09-18 Vivien Malerba * libgda/gda-value.[ch]: changed the _xml functions to work with xmlNodePtr instead of gchar * * providers/postgres/gda-postgres-provider.c: bug fix for NULL default value for a field 2002-09-18 Rodrigo Moya * report/libgda-report/gda-report-document.[ch]: fixed public functions' names. 2002-09-15 Holger Thon * providers/freetds/gda-freetds-provider.c: fixed compile error 2002-09-15 Gonzalo Paniagua Javier * libgda/gda-init.c: (gda_main_run): use g_main_loop_run. * libgda/gda-value.c: (gda_value_new_from_xml): avoid compiler warning. 2002-09-14 Holger Thon * providers/freetds/gda-freetds-provider.c: coding style corrections, implemented change_database * providers/freetds/gda-freetds-provider.h: added database to freetds connection handle * providers/freetds/gda-tds-schemas.h: corrected databases schema 2002-09-12 Rodrigo Moya * providers/mysql/gda-mysql-provider.c (add_aggregate_row): add missing information to the returned data model (although still with some undefined values). (get_mysql_aggregates): adapted to changes in add_aggregate_row(). * doc/C/libgda-docs.sgml: added information about the DATABASES schema 2002-09-11 Rodrigo Moya * libgda/gda-value.[ch] (gda_value_new_from_xml): new function. (gda_value_to_xml): new function. 2002-09-11 Carlos Perello Marin * configure.in (ALL_LINGUAS): Added ko 2002-09-11 Xabier Rodriguez Calvar * doc/C/libgda-docs.sgml: small change in compilation instructions. 2002-09-09 Rodrigo Moya Released 0.8.193 2002-09-07 Rodrigo Moya * doc/C/libgda-docs.sgml: extended compilation section. 2002-09-05 Rodrigo Moya * libgda/gda-connection.c (gda_connection_new): no need to make a copy of the error list. 2002-09-04 Rodrigo Moya * libgda/gda-connection.c (gda_connection_new): if the provider sets errors on connecting, notify the client about those errors by emitting its "error" signal. 2002-09-02 Rodrigo Moya * providers/mdb/gda-mdb-provider.c (gda_mdb_provider_get_version): (gda_mdb_provider_get_server_version): implemented missing methods. 2002-09-02 Rodrigo Moya * libgda/gda-config.c (gda_config_get_provider_list): use G_MODULE_SUFFIX instead of using ".so" directly. 2002-09-01 Rodrigo Moya * libgda/gda-xml-database.c (gda_xml_database_save): implemented. (gda_xml_database_new_from_data_model): check return value from gda_table_new_from_model. (gda_xml_database_new_table_from_node): type is stored as a string in the XML. Scan more properties. * libgda/gda-data-model.[ch] (gda_data_model_to_xml_node): new function for converting data models to xmlNodePtr's. * providers/default/gda-default-provider.c (process_table_commands): new function for managing GDA_COMMAND_TYPE_TABLE commands. (gda_default_provider_execute_command): implemented case for TABLE commands. 2002-08-31 Rodrigo Moya * configure.in: added summary at the end, to display all detected options/providers. 2002-08-30 Gonzalo Paniagua Javier * providers/postgres/utils.c: removed unneeded case. 2002-08-30 Gonzalo Paniagua Javier * tools/gda-config-tool.c: added copyright notice. 2002-08-29 Vivien Malerba * libgda/gda-value.c: fixed a bug in the tests for the gda_value_compare () function 2002-08-27 Richard Campbell * providers/default/gda-default-provider.c (gda_default_provider_supports): fixed if condition. 2002-08-25 Rodrigo Moya * libgda/gda-value.[ch] (gda_value_is_number): new function. * libgda/gda-field.[ch] (gda_field_attributes_get_auto_increment): (gda_field_attributes_set_auto_increment): (gda_field_attributes_get_table): (gda_field_attributes_set_table): new functions. * providers/mysql/gda-mysql-recordset.c (gda_mysql_recordset_describe_column): use 'length' field of the MYSQL_FIELD structure, not 'max_length'. Set missing attributes on the list of fields. * providers/mysql/gda-mysql-provider.c (gda_mysql_provider_create_database): use a CREATE DATABASE SQL query instead of calling mysql_create_db. (gda_mysql_provider_drop_database): use a DROP DATABASE SQL query instead of calling mysql_drop_db. 2002-08-25 Rodrigo Moya * libgda/gda-value.h: added a new field to GdaValue structure, for storing the length of binary values. * libgda/gda-value.c (gda_value_new_binary): added 'glong size' argument to the function, and implemented it. (gda_value_copy): implemented case for binary values. (gda_value_set_from_value): likewise. (gda_value_stringify): likewise. (set_from_string): likewise. (gda_value_get_binary): implemented. (gda_value_set_binary): implemented. * providers/mysql/gda-mysql-recordset.c (fetch_row): use max_length field to determine the length of the BLOB values. * doc/libgda-C.omf: removed this file, which is generated from * libgda-C.omf.in. 2002-08-24 Rodrigo Moya * providers/mysql/gda-mysql-provider.c (gda_mysql_provider_begin_transaction): set the isolation level for the transaction. * testing/client.c (open_connection): create a GdaTransaction for passing it to transaction methods. * libgda/gda-transaction.[ch]: added isolation level support. (gda_transaction_get_isolation_level): new function. (gda_transaction_set_isolation_level): new function. 2002-08-23 Rodrigo Moya * providers/mysql/gda-mysql-provider.c (get_mysql_tables): set the owner to an empty string instead of "Unknown". (get_table_fields, field_row_to_value_list): added 'default value' field. (add_aggregate_row): renamed from add_string_row. Still missing the addition of the missing columns. 2002-08-23 Richard Campbell * doc/C/Makefile.am: fixed connection string description for the default provider (FILENAME->URI). 2002-08-23 Margus Väli * report/libgda-report/Makefile.am: link libgda-report with libgda-2, for cygwin compilation. 2002-08-22 Vivien Malerba * libgda-docs.sgml: updated the schemas * providers/postgres/gda-postgres-provider.c: set the schemas in sync with the docs 2002-08-21 Rodrigo Moya * libgda/gda-value.[ch] (gda_value_get_type): made this a function, not a #define. 2002-08-21 Vivien Malerba * gda-value.[hc]: modified the implementation of the gda_value_get_vtype() function to return the type held into the value and not the type of the value (there is already a gda_value_get_type() macro for that), and added a gda_value_set_vtype() function. * providers/postgres/gda-postgres-provider.c: improved some schemas. 2002-08-21 Rodrigo Moya * libgda.spec.in: * Makefile.am: added missing lines in last Ben's patch. 2002-08-21 Vivien Malerba * providers/postgres/gda-postgres-provider.[hc]: modified some schemas to more closely return sets as described in the documentation. 2002-08-19 Ben Liblit * configure.in: assume that the readline library depends upon the curses library * libgda.spec.in: fix version number substitutions * libgda.spec.in: remove some explicit "Requires:" prerequisites that RPM will figure out on its own; remove explicit dependency on older MySQL client libraries * libgda.spec.in: require that the ODBC development package be installed if we are building the ODBC provider * libgda.spec.in: create distinct subpackages for each provider, conditional on that provider actually being enabled; some of these will need to be updated as the family of available providers changes * libgda.spec.in: update files list to match what "make install" actually installs * Makefile.am: no need to explicitly list "*.in" files for distribution, as automake takes care of these implicitly; use standard $(EXTRA_DIST) list for distributing spec file 2002-08-18 Rodrigo Moya * providers/default/gda-default-provider.c (gda_default_provider_get_database): new class method. 2002-08-18 Gonzalo Paniagua Javier * providers/postgres/gda-postgres-provider.c: implemented get_server_version. * providers/postgres/gda-postgres-provider.h: added version to private connection data. * testing/client.c: display server version. 2002-08-18 Rodrigo Moya * providers/default/gda-default-provider.c (gda_default_provider_get_version): new method. (gda_default_provider_get_server_version): new method. 2002-08-18 Holger Thon * providers/freetds/gda-freetds-provider.c: (gda_freetds_provider_get_version): return gda version (gda_freetds_provider_get_version): FIXME: dummy, returns NULL 2002-08-17 Rodrigo Moya * libgda/gda-server-provider.[ch] (gda_server_provider_get_version): new function. (gda_server_provider_get_server_version): new function. * libgda/gda-connection.c (gda_connection_add_error_string): set error source to be the name of the provider, not the program name. (gda_connection_get_server_version): new function. * providers/mysql/gda-mysql-provider.c (gda_mysql_provider_get_version, gda_mysql_provider_get_server_version): * providers/postgres/gda-postgres-provider.c (gda_postgres_provider_get_version, gda_postgres_provider_get_server_version): implemented new class methods. 2002-08-16 Holger Thon * libgda/providers/ibmdb2/core{1,2}.log: * libgda/providers/ibmdb2/TODO: added corelogs, added SIGSEGV problem to TODO to remember * libgda/providers/ibmdb2/TODO: todo added * libgda/gda-client.c: * libgda/gda-data-model.c: * libgda/gda-select.c: * libgda/gda-server-provider.c: * libgda/gda-xml-connection.c: * libgda/gda-xml-database.c: * libgda/gda-xql-delete.c: * libgda/gda-xql-dml.c: * libgda/gda-xml-document.c: * libgda/gda-xql-insert.c: * libgda/gda-xql-select.c: * gda-xql-update.c: added string.h include * libgda/gda-value.c: added libgda/gda-util.h include * providers/mysql/gda-mysql-provider.c: * providers/mysql/gda-mysql-recordset.c: added string.h to includes * providers/mysql/libmain.c: fixed compile warnings * providers/ibmdb2/gda-ibmdb2-provider.c * (gda_ibmdb2_provider_open_connection): fixed cleanup on error fixed passing connection data to GdaConnection object 2002-08-16 Holger Thon * ChangeLog: added missing entries 2002-08-15 Holger Thon * providers/ibmdb2/gda-ibmdb2-provider.c: * providers/ibmdb2/libmain.c: fixed host parameter to alias (database dsn), alias connections finished * providers/ibmdb2/gda-ibmdb2-provider.{c,h}: added get_database() 2002-08-14 Rodrigo Moya * doc/C/Makefile.am: added fdl-appendix.sgml to $content_files, so that it gets included when distcheck'ing. 2002-08-14 Holger Thon * configure.in: added IBMDB2_DIR define; perhaps for dbaliases in cfg/db2cli.ini * providers/freetds/gda-freetds.h: * providers/freetds/gda-freetds-provider.{c,h}: * providers/freetds/gda-freetds-recordset.c: added sanity checks for correct provider in dummy functions, moved sql queries for schemas into separate header file, separated freeing on error during connection_open into free_connection_data * providers/freetds/gda-freetds-message.{c,h}: added gda_freetds_message_add() for appending to msg/err GPtrArray * providers/freetds/Makefile.am: Added dependency for schema include file * providers/freetds/gda-tds-schemas.h: Moved schema queries into header file for future include by sybase provider * providers/ibmdb2/gda-ibmdb2-provider.{c,h}: started work on connection code * providers/freetds/gda-freetds-provider.c: Added extended remote procedures to schema, corrected users schema, set column name for views schema * configure.in: removed stale tds lines commented out added ibmdb2 cli checks * acconfig.h: Added IBMDB2 define * providers/Makefile.am: Added ibmdb2 directory * providers/ibmdb2/.cvsignore: added .cvsignore * providers/ibmdb2/Makefile.am: replaced dummy Makefile.am with provider Makefile.am * providers/ibmdb2/gda-ibmdb2.h: * providers/ibmdb2/gda-ibmdb2-provider.{c,h}: * providers/ibmdb2/libmain.c: * providers/ibmdb2/utils.c: added skeleton for ibmdb2 provider * providers/ibmdb2/Makefile.am: added dummy Makefile.am 2002-08-12 Rodrigo Moya * libgda/gda-value.[ch] (gda_value_get_vtype): new function. 2002-08-11 Holger Thon * providers/freetds/gda-freetds-provider.c: Fixed _supports() * providers/freetds/gda-freetds-types.c: Added datetim* types, Added numeric types * providers/freetds/gda-freetds-provider.c: Added users schema, added procedures schema 2002-08-10 Holger Thon * providers/freetds/config.sample: sample xml snipplet of freetds configuration * configure.in: enabled freetds compilation in configure.in * providers/freetds/gda-freetds-provider.c: fixed field schema nullable * providers/freetds/gda-freetds.h: * providers/freetds/gda-freetds-provider.{c,h}: fixed sqlstate in message handler, changed TDSSOCKET *socket to shorter TDSSOCKET *tds * providers/freetds/Makefile.am: added gda-freetds-message.{c,h} * providers/freetds/gda-freetds-message.{c,h}: Added message_new() and _free() to pass callback msgs list to cnc * providers/freetds/gda-freetds-provider.c: added error handling routines using global tds callbacks * providers/freetds/gda-freetds-types.c: Added single and double types * libgda/gda-value.c (gda_value_stringify): Added GDA_VALUE_TYPE_TINYINT (tinyint fix) * testing/freetds-test.c: removed insert test 2002-08-09 Xabier Rodriguez Calvar * doc/C/libgda-docs.sgml: spelling fixes and migration formulae section added. 2002-08-09 Holger Thon * testing/Makefile.am: * testing/client.c: * testing/freetds-test.c: * testing/freetds-test.h: started work on freetds specific tests * providers/freetds/gda-freetds.h: * providers/freetds/gda-freetds-provider.c: * providers/freetds/gda-freetds-recordset.c: * providers/freetds/utils.c: completed integer implementation FIXME: tinyint does not work * providers/freetds/gda-freetds-provider.c: added tables schema, started on fields schema changed sanity check order in open_connection() some internalization fixes * providers/freetds/Makefile.am: Added gda-freetds-types.* for compilation * providers/freetds/gda-freetds-recordset.c: duped TDSCOLINFO information for describe_column(), implemented describe_column() * providers/freetds/gda-freetds-recordset.h: a single fields' data is now set by gda_freetds_set_gdavalue() * providers/freetds/gda-freetds.h: added gda-freetds-types.h to included files * providers/freetds/gda-freetds-types.c: Implementation of TDS string types * providers/freetds/gda-freetds-types.h: SQL- and GdaValue feeding started 2002-08-08 Holger Thon * providers/freetds/.cvsignore: removed output files of old API * providers/freetds/gda-freetds-recordset.{c,h}: very basic implementation of recordset klass/result processing, completed gda_freetds_recordset_get_n_rows, _get_n_columns, _get_row, _get_value_at * providers/freetds/gda-freetds-provider.{c,h}: Completed connection (tested: freetds 0.53/TDS42/Sybase 11.9.2) sql-capability added, gda_freetds_provider_process_sql_commands added database schema completed * providers/freetds/gda-freetds.h: added gda-freetds-recordset.h include, added gda_freetds_split_commandlist() definition * providers/freetds/libmain.c: Changed dsn-parameters from TDS* to TDS_* * providers/freetds/utils.c: Added gda_freetds_split_commandlist() for split of sql commandlists FIXME: function needs debugging * providers/freetds/Makefile.am: Added gda-freetds-recordset.* 2002-08-07 Xabier Rodriguez Calvar * doc/C/Makefile.am: * doc/C/libgda-docs.sgml: added new documentation with full source code example. 2002-08-07 Holger Thon * providers/freetds/Makefile.am: Added Makefile.am * providers/freetds/gda-freetds.h: * providers/freetds/gda-freetds-provider.c: * providers/freetds/utils.c: fixed some typos * configure.in: Updated checks for freetds to use tds.h, freetds disabled unless /etc/freetds/compile_gda_tds_provider exists * providers/Makefile.am: * providers/freetds/gda-freetds.h: * providers/freetds/gda-freetds-provider.{c,h}: * providers/freetds/libmain.c: * providers/freetds/utils.c: Changed TDS vars to FREETDS, Added skeleton for gda-freetds-provider.* * acconfig.h: * configure.in: Changed TDS vars to FREETDS * providers/freetds/.cvsignore: updated ignore file 2002-08-04 Rodrigo Moya * doc/libgda-C.omf.in: added OMF file. * configure.in: * doc/Makefile.am: added rules to install OMF file. 2002-08-04 Rodrigo Moya * libgda/gda-data-model.c (gda_data_model_get_column_title): if we don't have the title, call @describe_column. (gda_data_model_set_column_title): if the key already exists, remove it from the hash table before re-adding it again. * providers/mysql/gda-mysql-recordset.c (gda_mysql_recordset_describe_column): use mysql_fetch_fields, not mysql_fetch_field, or we'll get unknown results. (gda_mysql_recordset_new): set column titles on the data model. 2002-08-04 Florian Blaser * doc/C/libgda-docs.sgml: some small corrections. 2002-07-17 Gonzalo Paniagua Javier * tools/gda-config-tool.c: added options for listing datasources and providers. (batch_options): fixed section name. 2002-07-10 Gonzalo Paniagua Javier * providers/postgres/gda-postgres-recordset.c: set number of rows to PQcmdTuples for non-select queries. Thanks to José Dapena Paz. Fixes bug #87762. 2002-07-10 Gonzalo Paniagua Javier * providers/postgres/gda-postgres-provider.c: set client encoding for postgres to UNICODE. Thanks to Dmitry G. Mastrukov. 2002-07-09 Rodrigo Moya * doc/C/libgda-docs.sgml: added documentation about the format of the schema data models. * libgda/gda-value.h: added GDA_VALUE_TYPE_TYPE, for specifying GdaValueType's in GdaValue's. * libgda/gda-value.c (gda_value_new_type): new function. (set_from_string): manage GDA_VALUE_TYPE_TYPE. (gda_value_copy): ditto. (gda_value_set_from_value): ditto. (gda_value_stringify): ditto. (gda_value_compare): ditto. * providers/mysql/gda-mysql-provider.c (get_mysql_tables): retrieve extra data. (get_mysql_types): added new fields for TYPES schema. * providers/mysql/gda-mysql-recordset.c (fetch_row): don't pass NULL values to ato* functions. 2002-07-08 Rodrigo Moya Released 0.8.192 2002-07-04 Gonzalo Paniagua Javier * libgda/gda-config.c: (write_config_file): removed unneeded assertion. It now creates an empty file if no sections in the list. 2002-07-01 Rodrigo Moya * libgda/gda-connection.c (gda_connection_get_type): fixed documentation for this function. 2002-06-28 Tim Coleman * providers/oracle/gda-oracle-provider.c: - Added code to retrieve public/unique/foreign key information for schema purposes. - Free up more Oracle memory when bad things happen - Added a function to retrieve list of Oracle tablespaces for schema purposes. * providers/oracle/gda-oracle-recordset.c: - Free up more Oracle memory when bad things happen - Clean up the get_n_rows code to work properly * providers/oracle/utils.c: - only allocate memory for the string buffer when I need it 2002-07-01 Gonzalo Paniagua Javier * libgda/gda-connection.c: (gda_connection_finalize): (gda_connection_add_error): (gda_connection_add_error_list): keep the error list stored for later retrieval. Use gda_error_list_(copy|free). (gda_connection_get_errors): returns a the latest error(s) ocurred in the connection. * libgda/gda-connection.h: added prototype for gda_connection_get_errors (). * libgda/gda-error.c: (gda_error_list_copy): makes new copy of a GList of GdaError by using g_list_copy and then g_object_ref on the data. (gda_error_list_free): use g_list_foreach. * libgda/gda-error.h: added prototype for gda_error_list_copy. 2002-06-25 Gonzalo Paniagua Javier * libgda/gda-config.c: (