2010-05-24 Vivien Malerba * NEWS, installers/WindowsWix/make-zip-exe.sh: Released 4.1.6 * tools/browser/help/de/.gitignore: Hide non versionned files in .gitignore * libgda/gda-sql-builder.c, tests/test-sql-builder.c: make gda_sql_builder_select_add_target_id() return an already existing ID in case a target with the same characteristics as the one to add is already present * tests/test-sql-builder.c: Corrected GdaSqlBuilder test * libgda/sqlite/gda-sqlite-provider.c: Don't display the "SQLite provider enforces foreign keys." message 2010-05-23 Vivien Malerba * libgda/gda-sql-builder.c: Handle targets' order in gda_sql_builder_select_join_targets() this specifically fixes the problem when calling gda_sql_builder_select_join_targets (builder, id_left, id_right, ...) with the target represented by id_right is already present in the list of targets, in which case the targets' order is reversed and the join type adapted if necessary. * libgda-ui/gdaui-login.c: GdauiLogin widget corrections Thanks to Carlos Savoretti for identifying the bug 2010-05-22 Mario Blättermann * po/de.po: Updated German translation * tools/browser/help/Makefile.am, tools/browser/help/de/de.po: Added German doc translation 2010-05-21 Matej Urbančič * po/sl.po: Updated Slovenian translation 2010-05-21 Murray Cumming * libgda/gda-sql-builder.c: gda_sql_builder_select_join_targets(): Improve a warning. 2010-05-20 Murray Cumming * doc/C/howto.xml, doc/C/tmpl/gda-sql-builder.sgml, libgda/gda-sql-builder.c, tests/test-sql-builder.c: More SqlBuilder documentation corrections. 2010-05-20 Vivien Malerba * doc/C/tmpl/gda-sql-builder.sgml: Doc update following GdaSqlBuilder API changes * samples/SqlBuilder/example.c, samples/SqlBuilder/example_cnc.c: Corrected examples following GdaSqlBuilder API changes 2010-05-20 Murray Cumming * libgda/gda-sql-builder.c, providers/reuseable/mysql/gda-mysql-reuseable.c, .../reuseable/postgres/gda-postgres-reuseable.c, tests/test-sql-builder.c: Correct use of gda_sql_builder_add_function() with no ID. * libgda/gda-sql-builder.c: gda_sql_builder_add_function(): Check for a null function name. * providers/reuseable/mysql/gda-mysql-reuseable.c * providers/reuseable/postgres/gda-postgres-reuseable.c * tests/test-sql-builder.c: Correct use of gda_sql_builder_add_function() now that the id parameter is gone. The compiler did not find these because it is a ... function. 2010-05-19 Murray Cumming * doc/C/howto.xml, libgda/gda-sql-builder.c, libgda/gda-sql-builder.h, providers/web/gda-web-recordset.c, samples/SqlBuilder/example.c, samples/SqlBuilder/example_cnc.c, tools/browser/browser-connection.c, tools/browser/browser-favorites.c, tools/browser/data-manager/data-source.c: GdaSqlBuilder: Remove the ability to specify the IDs. * libgda/gda-sql-builder.[h|c]: (gda_sql_builder_add_id, gda_sql_builder_add_expr, gda_sql_builder_add_expr_value, gda_sql_builder_add_param, gda_sql_builder_add_cond, gda_sql_builder_add_cond_v, gda_sql_builder_add_function, gda_sql_builder_add_function_v, gda_sql_builder_add_sub_select, gda_sql_builder_add_case, gda_sql_builder_add_case_v, gda_sql_builder_select_add_target_id, gda_sql_builder_select_join_targets, gda_sql_builder_import_expression): Remove the id parameter which could be 0 (and usually was), so the caller must always now store the generated returned ID if necessary instead. This simplifies the API and improves application code. * providers/web/gda-web-recordset.c * tools/browser/browser-connection.c * tools/browser/browser-favorites.c * tools/browser/data-manager/data-source.c: * samples/SqlBuilder/example.c * samples/SqlBuilder/example_cnc.c: Adapted. * doc/C/howto.xml: Adapt the code in the tutorial-style documentation too. 2010-05-17 Murray Cumming * libgda/gda-sql-builder.c: gda_sql_builder_select_order_by(): Treat empty collation like null. 2010-05-13 Jorge González * doc/es/es.po: Added Spanish translation * doc/Makefile.am: Added DOC_LINGUAS and es to it 2010-05-12 Vivien Malerba * doc/C/tmpl/gda-sql-builder.sgml, libgda/gda-sql-builder.c, samples/SqlBuilder/README, samples/SqlBuilder/example.c: Minor corrections to GdaSqlBuilder * mem leak correction * added an example to use a sub select in a FROM 2010-05-12 Murray Cumming * libgda/gda-sql-builder.c, libgda/gda-sql-builder.h, samples/SqlBuilder/example.c: GdaSqlBuilder: Remove steal parameters. * libgda/gda-sql-builder.[h|c]: gda_sql_builder_add_sub_select() and gda_sql_builder_compound_add_sub_select(): Remove the steal parameter, so these always copy instead. * samples/SqlBuilder/example.c: Adapt. Note that nothing ever passed FALSE to these functions so we are probably testing a new code path now. Note also that this causes more copying, but the right way to avoid that would be to use reference-counting by using real GObjects instead of just boxed type structs. * libgda/sql-parser/gda-statement-struct.h: GdaSqlStatement: Allow this to be used from C++. * libgda/sql-parser/gda-statement-struct.h: Add G_BEGIN_DECLS and G_END_DECLS to fix the linking when used via C++. 2010-05-11 Murray Cumming * libgda/gda-sql-builder.c, libgda/gda-sql-builder.h, samples/SqlBuilder/example.c, tests/test-sql-builder.c, tools/browser/browser-favorites.c: gda_sql_builder_get_sql_statement(): Remove copy_it parameter. * libgda/gda-sql-builder.[h|c]: gda_sql_builder_get_sql_statement(): Remove the copy_it parameter, and adapt the documentation, because this does not belong in API. Callers should call gda_sql_statement_copy() if necessary, as with any other boxed type. * samples/SqlBuilder/example.c * tests/test-sql-builder.c * tools/browser/browser-favorites.c: Adapt several uses of this function. They all just passed FALSE apart from one that passed TRUE incorrectly, leaking the copy. * libgda/sql-parser/gda-statement-struct.c, libgda/sql-parser/gda-statement-struct.h: GdaStatement: Register this boxed type as a GType. 2010-05-10 Jorge González * po/es.po: Updated Spanish translation 2010-05-09 Vivien Malerba * configure.in: Set version to 4.1.6 * NEWS: Released 4.1.5