Commit graph

73 commits

Author SHA1 Message Date
gambas
9402047435 Support for the 'Collection.Options' property.
[GB.DB.MYSQL]
* NEW: Support for the 'Collection.Options' property.

[GB.DB.ODBC]
* NEW: Support for the 'Collection.Options' property.

[GB.DB.POSTGRESQL]
* NEW: Support for the 'Collection.Options' property.

[GB.DB.SQLITE2]
* NEW: Support for the 'Collection.Options' property.

[GB.DB.SQLITE3]
* NEW: Support for the 'Collection.Options' property.
2022-04-09 13:30:42 +02:00
gambas
261dd42ccd Adapt GetRecordCount() to the SQLite ODBC database driver.
[GB.DB.ODBC]
* BUG: Adapt GetRecordCount() to the SQLite ODBC database driver.
2021-07-14 19:52:21 +02:00
gambas
f24f08d941 Try to read date fields correctly in most ODBC drivers.
[GB.DB.ODBC]
* BUG: Try to read date fields correctly in most ODBC drivers.
2021-04-29 22:53:52 +02:00
gambas
9339d2bcdf Fix ODBC to Gambas data conversion.
[GB.DB.ODBC]
* BUG: Fix ODBC to Gambas data conversion.
2021-04-10 23:38:11 +02:00
gambas
b884871927 More bug fixes.
[GB.DB.ODBC]
* BUG: Support for date fields, by assuming their string representation is local.
* BUG: Fix uninitialized memory access in GetConnectedDBName().
* NEW: Add many debugging messages.
* OPT: Reuse the information extracted by query_init() when retrieving information about result fields.
* BUG: Ignore negative field types. Replace them by SQLCHAR.
* BUG: Fix blob_read(), following the MS documentation.
* BUG: Correctly define the table quote character as `"`.
* BUG: When creating a table, booleans are replaced by TINYINT.
2021-04-10 22:39:11 +02:00
gambas
3677f9ef34 Fix ton of bugs. Some remains.
[GB.DB.ODBC]
* BUG: Result objects are correctly freed now after the database has been closed.
* BUG: Retrieving the contents of a row now works.
* BUG: Clean-up error handlings with this good old 'goto'. Statement handles should now always correctly be freed.
* OPT: Replace linked lists by arrays almost everywhere.
* NEW: Column names can now be up to 255 characters length.

*
2021-04-10 16:18:29 +02:00
gambas
cad7c492ee Some little fixes.
[GB.DB.ODBC]
* NEW: Insert some newlines for readability.
* BUG: Fix the 'database_list' API, that crashes if called with requesting only the count.
* BUG: Fix table creation for blob fields (even if they are not supported!).
2021-04-10 03:46:58 +02:00
zxMarce
0047bdf9c0 Corrects forward-only fetching for MDBTools. 2021-04-09 19:45:57 -03:00
zxMarce
e078f54480 [GB.DB.ODBC]
* BUG: Fixed logic issues that hindered use with MDBTools.
2021-04-05 23:50:14 -03:00
zxMarce
bcdc122bce Corrections to ODBC for MDBTools. 2021-04-05 23:36:37 -03:00
gambas
0840c58508 Get rid of a warning by using snprintf() instead of strncpy().
[GB.DB.ODBC]
* BUG: Get rid of a warning by using snprintf() instead of strncpy().
2020-07-25 11:49:01 +02:00
Laurent Carlier
f1deb8e330 Remove register keyword, deprecated, now reserved keyword with C++17
Fixes "warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register]"
with clang

https://en.cppreference.com/w/cpp/keyword/register
2019-10-30 06:53:09 +00:00
gambas
234c2c690a [GB.DB]
* NEW: Add a driver API that handles debugging messages.
* NEW: Print the current date/time before any debugging message.

[GB.DB.MYSQL]
* NEW: Use the new driver API to print debugging messages.

[GB.DB.ODBC]
* NEW: Use the new driver API to print debugging messages.

[GB.DB.POSTGRESQL]
* NEW: Use the new driver API to print debugging messages.

[GB.DB.SQLITE2]
* NEW: Use the new driver API to print debugging messages.

[GB.DB.SQLITE3]
* NEW: Use the new driver API to print debugging messages.
2019-08-30 09:09:16 +02:00
gambas
245427b08e * Get rid of many gcc warnings. 2019-01-02 00:48:58 +01:00
Bastian Germann
b6a00614ef Changes to the build system 2018-08-29 01:11:22 +00:00
gambas
3c84b78d13 Fix a memory leak when connecting to a database.
[GB.DB.ODBC]
* BUG: Fix a memory leak when connecting to a database.
2018-07-16 17:56:37 +02:00
gambas
aebc6a0bda Fix some memory leaks when opening a connection fails.
[GB.DB.ODBC]
* BUG: Fix some memory leaks when opening a connection fails.
2018-05-24 17:59:50 +02:00
gambas
e07ac2e4f2 Connection.LastInsertId is a new property that returns the value of the serial field used in the last inserted row.
[GB.DB]
* NEW: Connection.LastInsertId is a new property that returns the value of the serial field used in the last inserted row. It is supported on MySQL, PostgreSQL and SQLite3 only.
* BUG: Connection.Handle is correctly declared now.

[GB.DB.MYSQL]
* NEW: Support for Connection.LastInsertId.

[GB.DB.ODBC]
* NEW: Raise an error if Connection.LastInsertId is used.

[GB.DB.POSTGRESQL]
* NEW: Support for Connection.LastInsertId.

[GB.DB.SQLITE2]
* NEW: Raise an error if Connection.LastInsertId is used.

[GB.DB.SQLITE3]
* NEW: Support for Connection.LastInsertId.
2018-03-20 16:05:33 +01:00
gambas
09a0573e61 Replace my old sourceforge mail address by the new one.
[CONFIGURATION]
Replace my old sourceforge mail address by the new one.
2018-02-12 02:53:46 +01:00
gambas
e74a52e08c Fix a warning.
[GB.DB.ODBC]
* BUG: Fix a warning.
2017-09-27 23:05:11 +02:00
zxMarce
9f8ab729fe [ODBC main.c]
* Updated so non-data-producing queries don't fail with error.
* Added routine to throw detailed ODBC errors as Gambas errors.
* Cosmetic changes to the C code.
2017-08-23 00:57:55 +00:00
bgermann
40fe3075be Define unixODBC-only constants if not available
This enables using linking gb.db.odbc with iodbc and possibly any other ODBC implementation for unix-like systems.

The new defines originate from unixODBC's sqlext.h.

[GB.DB.ODBC]
* NEW: Define unixODBC-only constants if they are not available to enable other ODBC backends
2017-08-17 13:29:24 +02:00
Laurent Carlier
8dc6679530 Remove 'missing' file ,generated by autotools, from the repository 2017-08-13 16:13:06 +02:00
Benoît Minisini
82eddfd5c9 [CONFIGURATION]
* NEW: Remove all 'depcomp' files. Apparently they are not used anymore by autoconf.

[INTERPRETER]
* BUG: Fix some gcc 6 warnings.

[GB.DEBUG]
* BUG: Fix some gcc 6 warnings.

[GB.GTK]
* BUG: Fix some gcc 6 warnings.
* BUG: Fix a ';' mistake in a focus management test.

[GB.GTK3]
* BUG: Fix some gcc 6 warnings.
* BUG: Fix a ';' mistake in a focus management test.

[GB.IMAGE]
* BUG: Fix some gcc 6 warnings.


git-svn-id: svn://localhost/gambas/trunk@8101 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2017-02-18 17:24:01 +00:00
Benoît Minisini
b225eba20f [CONFIGURATION]
* NEW: Update copyright year in all source files.


git-svn-id: svn://localhost/gambas/trunk@8056 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2017-01-13 03:29:42 +00:00
Benoît Minisini
dd180e03ee [COMPILER]
* BUG: Fix internal datatype analyze. The compiler should not crash anymore on ARM.

[GB.DB.ODBC]
* BUG: Fix a 32-bits 'sprintf' format bug.

[GB.IMAGE.IO]
* BUG: Fix a 32-bits 'sprintf' format bug.

[GB.XML]
* BUG: Fix a 32-bits 'sprintf' format bug.


git-svn-id: svn://localhost/gambas/trunk@7887 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-09-03 23:45:59 +00:00
Benoît Minisini
80938b850d [GB.DB.ODBC]
* NEW: Better way to get record count, by zxWarce.
* NEW: Display the error returned by ODBC, by zxWarce.


git-svn-id: svn://localhost/gambas/trunk@7618 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-03-02 20:39:05 +00:00
Benoît Minisini
81a4022fba [GB.DB.ODBC]
* BUG: Don't crash when trying to open a database if the host is void.


git-svn-id: svn://localhost/gambas/trunk@7415 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-17 02:04:46 +00:00
Benoît Minisini
85a0b1f02b [GB.DB]
* NEW: Finish support of "forward-only" Result objects.

[GB.DB.ODBC]
* NEW: Clean-up a bit the query_fill() function.


git-svn-id: svn://localhost/gambas/trunk@7334 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-24 00:22:57 +00:00
Benoît Minisini
03fd5166f1 [GB.DB.ODBC]
* NEW: Support for "forward only" query result.


git-svn-id: svn://localhost/gambas/trunk@7316 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-16 19:50:55 +00:00
Benoît Minisini
9c006fd0df [GB.DB.ODBC]
* NEW: Internal query routine is now similar to other database drivers.
  DB.Debug is taken into account, and prints all queries sent, and the 
  number of rows returned.


git-svn-id: svn://localhost/gambas/trunk@7291 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-08 13:39:42 +00:00
Benoît Minisini
764a7a3960 [GB.DB.ODBC]
* NEW: Rewrite result allocation.


git-svn-id: svn://localhost/gambas/trunk@7290 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-08 13:24:13 +00:00
Benoît Minisini
dc2f6ad99a [GB.DB.ODBC]
* BUG: Allow the Connection Host and User properties to be NULL.
* BUG: Some other little fixes.

git-svn-id: svn://localhost/gambas/trunk@7267 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-03 12:18:11 +00:00
Benoît Minisini
8c063cd280 [GB.DB.ODBC]
* NEW: Allow the Connection.Host property to be a full ODBC connection 
  string.


git-svn-id: svn://localhost/gambas/trunk@7266 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-03 12:05:49 +00:00
Benoît Minisini
c6d37cf4b8 [DEVELOPMENT ENVIRONMENT]
* NEW: Use the FontBox control in the option dialog.

[WIKI CGI SCRIPT]
* NEW: Add a preview button in editing mode.

[GB.DB]
* NEW: Database driver now have a flag to tell if they support collation or 
  not.

[GB.DB.POSTGRESQL]
* BUG: Use collation only if database version is greater or equal than 9.1.

[GB.FORM]
* NEW: Little design changes in the FontChooser control.
* BUG: Fix the FontBox control.
* NEW: FontBox.Default is a new property that defines which text is 
  displayed in the control when no font is set. By default, the application 
  default font name is used.

[GB.FORM.DIALOG]
* NEW: Add a custom font chooser dialog for Dialog.SelectFont().


git-svn-id: svn://localhost/gambas/trunk@6520 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-10-07 00:01:13 +00:00
Benoît Minisini
7fa6cd0569 [DEVELOPMENT ENVIRONMENT]
* NEW: Database editor: Support for the new Collation field property.

[EXAMPLES]
* BUG: PdfViewer: Some little fixes.

[GB.DB]
* NEW: Table.Fields.Add() method takes a new optional argument to define
  the field collation.
* NEW: Connection.Collations is a new property that returns the list of
  available collations as a String array.
* NEW: Field.Collation is a new property that returns the collation of a
  specific table field.

[GB.DB.MYSQL]
* NEW: Support for field collations.

[GB.DB.ODBC]
* NEW: Raise an error when trying to use collations. It is not supported.

[GB.DB.POSTGRESQL]
* NEW: Support for field collations.

[GB.DB.SQLITE2]
* NEW: Raise an error when trying to use collations. It is not supported.

[GB.DB.SQLITE3]
* NEW: Support for field collations.

[GB.QT4]
* BUG: ComboBox.Border property can be set even if it is in read-only mode.


git-svn-id: svn://localhost/gambas/trunk@6494 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-09-22 02:52:05 +00:00
Benoît Minisini
5e76433eeb [CONFIGURATION]
* NEW: Do not use deprecated autoconf macros anymore.
* NEW: The version information is now located in the 'version.m4' file in
  the source root directory.


git-svn-id: svn://localhost/gambas/trunk@6230 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-04-05 21:22:43 +00:00
Benoît Minisini
4f566fa199 [DEVELOPMENT ENVIRONMENT]
* BUG: Forgot the description of gb.opengl.sge.

[INTERPRETER]
* BUG: Propagate the GB_DATE_SERIAL structure changes to all components.


git-svn-id: svn://localhost/gambas/trunk@5879 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-10-13 12:39:56 +00:00
Benoît Minisini
c9ca5ab982 [CONFIGURATION]
* NEW: Update copyright year to 2013.

[GB.FORM]
* NEW: ImageView is a new control that allows to view an image inside a 
  scrolled view, at different zoom levels.
* BUG: FileProperties now works correctly if 'gb.desktop' is not used.
* NEW: The FileProperties preview tab now uses an ImageView control and has
  a toolbar to zoom the preview.
* BUG: Add the 'linux' and 'gnu' icon in the stock icon list.


git-svn-id: svn://localhost/gambas/trunk@5770 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-08-03 15:38:01 +00:00
Benoît Minisini
dce61b765b [GB.DB.ODBC]
* NEW: Retrieve row count just after running the query.


git-svn-id: svn://localhost/gambas/trunk@5685 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-05-28 23:17:32 +00:00
Benoît Minisini
0812020209 [CONFIGURATION]
* NEW: Update VERSION file.

[DEVELOPMENT ENVIRONMENT]
* BUG: If the desktop password wallet is not available, do not crash 
  anymore, but display an error message instead.

[INTERPRETER]
* BUG: Some fixes in Application_Error method management.

[GB.EVAL.HIGHLIGHT]
* BUG: Some fixes in HTML highlighting.

[GB.QT.4.EXT]
* NEW: Editor: jumping to the next procedure from the current one now goes 
  to the end of the file.


git-svn-id: svn://localhost/gambas/trunk@5684 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-05-28 20:48:43 +00:00
François Gallo
7947dd69f9 [CONFIGURATION]
* NEW: Add support for the MacPorts distribution. 
* BUG: Fix configuration issue for gb.qt.ext

[GB.CRYPT]
* NEW: it is now available for Mac OS X 10.8

[GB.QT4]
* BUG: Fix detection of X11 for the control DrawingArea on Mac OS X 10.8. 



git-svn-id: svn://localhost/gambas/trunk@5004 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-31 18:24:47 +00:00
Benoît Minisini
8ad1afe673 [CONFIGURATION]
* NEW: Print disabled components individually.

[GB.QT4]
* BUG: ComboBox background color is correctly handled now.


git-svn-id: svn://localhost/gambas/trunk@4739 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-18 01:19:15 +00:00
Benoît Minisini
e2fac79ffb [CONFIGURATION]
* NEW: Replace the old "INCLUDES" directive by "xxx_CPPFLAGS" in all 
  Makefile.am files.

[GB.XML]
* BUG: Remove debugging flags from compilation flags.


git-svn-id: svn://localhost/gambas/trunk@4714 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-04 16:45:14 +00:00
Benoît Minisini
4e3a714642 [INTERPRETER]
* BUG: Terminal emulation now does not automatically convert NL to CR+NL.
* BUG: Fix the declaration of custom array classes.

[GB.GTK]
* BUG: Stopping a file descriptor watch now correctly check if the event 
  loop must be exited.


git-svn-id: svn://localhost/gambas/trunk@4398 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-01-13 08:04:11 +00:00
Benoît Minisini
dd3b512daf [CONFIGURATION]
* NEW: Update copyrights.


git-svn-id: svn://localhost/gambas/trunk@4384 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-12-31 02:39:20 +00:00
Benoît Minisini
c1f20cb4fe [GB.DB]
* NEW: Connection.Timeout is a new property that defines the connection 
  timeout in seconds. The value is 20 seconds by default.


git-svn-id: svn://localhost/gambas/trunk@4309 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-12-22 00:31:57 +00:00
Benoît Minisini
6e6d9fd916 [CONFIGURATION]
* BUG: Remove generated ltmain.sh files.


git-svn-id: svn://localhost/gambas/trunk@4007 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-10 22:18:30 +00:00
Benoît Minisini
9ff2134921 [DEVELOPMENT ENVIRONMENT]
* NEW: Remove a debugging message in the connection editor.

[INTERPRETER]
* NEW: '_property' is a new special method that must return TRUE when an
  unknown symbol (stored in Param.Name) is a property. If that special
  method is not implemented, all unknown symbols are methods.
* NEW: Remove the deprecated constant gb.Text.
* NEW: Param.Property has been removed.

[COMPILER]
* NEW: Handle the new '_property' special method. That method must be 
  public, dynamic, takes no argument, and must return a boolean.


git-svn-id: svn://localhost/gambas/trunk@3915 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-07-03 02:46:15 +00:00
Benoît Minisini
54e2893d52 [GB.DB.ODBC]
* BUG: Fix a stupid crash that occurs on 64 bits systems only.

[GB.QT4.EXT]
* BUG: Fix an uninitialized variable in GEditor class.


git-svn-id: svn://localhost/gambas/trunk@3906 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-06-28 11:45:29 +00:00