Commit graph

62 commits

Author SHA1 Message Date
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
Benoît Minisini
2fbf67cb29 [CONFIGURATION]
* NEW: Update FSF address in every source file.


git-svn-id: svn://localhost/gambas/trunk@3870 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-06-03 00:51:09 +00:00
Benoît Minisini
b936c83f0d [CONFIGURATION]
* NEW: Update copyright strings.

[DEVELOPMENT ENVIRONMENT]
* NEW: Display menu shortcuts inside the form editor.


git-svn-id: svn://localhost/gambas/trunk@3670 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-03-21 00:04:10 +00:00
Benoît Minisini
1354ca2af7 [GB.DB.ODBC]
* BUG: Table existence should be checked correctly now.

[GB.DRAW]
* NEW: Paint.DrawImage() is a new utility function to paint an image 
  easily.

[GB.QT4]
* BUG: Printer.Count is now 1 by default.
* BUG: Found a workaround to the Qt bug #5114. Now the brush matrix is 
  taken into account when painting on a Printer object.


git-svn-id: svn://localhost/gambas/trunk@3347 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-07 01:20:40 +00:00
Benoît Minisini
3054690743 [CONFIGURATION]
* NEW: Print a summary of warning messages after each component 
  compilation.

[INTERPRETER]
* BUG: StrPtr() with a length argument now works correctly.
* NEW: Support for callbacks: when converting a function to a Pointer, an 
  internal closure is created with the libffi library. The pointer then can 
  be sent to any extern function as function pointer argument.
* BUG: Opening memory stream should work in all cases now.


git-svn-id: svn://localhost/gambas/trunk@3038 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-14 01:50:18 +00:00
Benoît Minisini
b3db598050 [DEVELOPMENT ENVIRONMENT]
* BUG: Breakpoints are correctly reset when opening a new project.

[INTERPRETER]
* BUG: The GB.NewString(), GB.NewZeroString() and GB.TempString() API 
  signature has changed. All components have been updated accordingly.
* OPT: Many optimizations to speed up the interpreter.

[GB.EVAL]
* NEW: During syntax highlighting, the first character of class names is
  automatically converted to uppercase.


git-svn-id: svn://localhost/gambas/trunk@2992 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-06-04 23:48:53 +00:00
Laurent Carlier
3b2f4ce2ae [GB.DB.ODBC]
* BUG: Fix compilations warning.

Use SQLLEN type instead of SQLINTEGER type.


git-svn-id: svn://localhost/gambas/trunk@2968 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-26 19:56:15 +00:00
Benoît Minisini
117f2ac635 [INTERPRETER]
* NEW: New GB.NewZeroString() API to create a Gambas string from a 
  null-terminated string. Components were modified to use it.
* OPT: Many optimizations everywhere.

[COMPILER]
* OPT: Many optimizations. The compiler should be noticeably faster.


git-svn-id: svn://localhost/gambas/trunk@2953 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-22 18:02:34 +00:00
Laurent Carlier
9c40bbac3f [CONFIGURATION]
* BUG: Add --install glag to autoreconf, that fix creation of config files,
  also add build-dist script to create a lighter tar.bz2 archive of the
  repository.



git-svn-id: svn://localhost/gambas/trunk@2519 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-26 21:30:35 +00:00
Benoît Minisini
47d0aa711c [CONFIGURATION]
* NEW: Architecture detection.
* NEW: Updated libtool macros.

[DEVELOPMENT ENVIRONMENT]
* NEW: Highlight the current procedure in the editor procedure popup.

[INTERPRETER]
* BUG: Alignment fixes for the ARM architecture.

[GB.DRAW]
* NEW: Start implementing the new Paint interface.

[GB.GTK]
* BUG: GridView.Clear is now correctly implemented.


git-svn-id: svn://localhost/gambas/trunk@2505 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-24 02:02:05 +00:00
Benoît Minisini
f65184802d [CONFIGURATION]
* NEW: Update copyright and license string in all source files.


git-svn-id: svn://localhost/gambas/trunk@2241 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-08-17 10:41:51 +00:00
Benoît Minisini
8dbb8a1e2a [CONFIGURATION]
* BUG: Forgot to commit symbolic links to the "m4" directory.


git-svn-id: svn://localhost/gambas/trunk@2237 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-08-16 22:51:28 +00:00