Commit Graph

5018 Commits

Author SHA1 Message Date
Ansgar Becker
55b08ca2e6 Suppress sporadic EAccessViolation on Wine in TMainForm.ShowStatusMsg 2023-10-01 08:23:10 +02:00
Ansgar Becker
46c66a1fae Forgotten file for previous commit. See https://www.heidisql.com/forum.php?t=41310 2023-10-01 07:42:35 +02:00
Ansgar Becker
1558bc597f Add context menu on data grid header with "Query exact row count" item, querying SELECT COUNT(*) on the underlying table. See https://www.heidisql.com/forum.php?t=41310 2023-09-30 12:32:46 +02:00
Ansgar Becker
b440f6c34d Issue #1833: update vcl-styles-utils from current master branch on RRUZ/vcl-styles-utils 2023-09-28 20:24:09 +02:00
Ansgar Becker
02d2a62daa Issue #1833: remove Vcl.Styles.UxTheme and Vcl.Styles.Utils.Menus from uses clause, keep only Vcl.Styles.Utils.Forms (required for correct themed background color on SynMemo's) 2023-09-28 20:21:52 +02:00
Ansgar Becker
0be3f8a410 Issue #750:
* move code from apphelpers.ReformatSQL to reformatter.ReformatInternal
* remember last used formatter
* use ReformatInternal in texteditor (as previously ReformatSQL)
* display HTTP response content in error dialog (EIdHTTPProtocolException.ErrorMessage)
2023-09-24 18:59:21 +02:00
Ansgar Becker
9e3bb2e51e Issue #750: experimental support for reformatting SQL code per online API, using the engine from https://github.com/doctrine/sql-formatter/ 2023-09-24 13:23:00 +02:00
Ansgar Becker
ee6eea0d20 Fix wrong comparison of table and org_table of PMYSQL_FIELD structure, again. Reverts d512e890e0. Closes #1854 2023-09-23 12:44:42 +02:00
Ansgar Becker
e064570a8c TDBQuery.HasFullData: Additional test if column name contains a known LEFT or SUBSTR function. Fixes #1850, at least if the original column names are provided by the library. 2023-09-16 11:55:17 +02:00
Ansgar Becker
dbd5ea9fff Code refactor: move common initialization stuff from 5 derived classes to their parent TDBConnection.Query 2023-09-11 18:37:41 +02:00
Ansgar Becker
587c88e574 Translation fixes: remove various unused strings, fix some wrong spelled strings, add some missing strings 2023-09-10 14:22:52 +02:00
Ansgar Becker
5bfafde5c4 Issue #872: fix crash when opening a table with columns defined as INVISIBLE, and ensure such columns are selected and visible in the data grid 2023-08-29 13:42:08 +02:00
Ansgar Becker
95e9e3e7e6 Attempt to fix crash in TMainForm.SessionConnect when current session is disconnected. See https://www.heidisql.com/forum.php?t=41174 2023-08-15 07:03:01 +02:00
Ansgar Becker
f4a41cd45d Unquote column names from user GRANT before displaying them. Saving the GRANT quotes it again. See https://www.heidisql.com/forum.php?t=41140 2023-07-22 12:01:23 +02:00
Ansgar Becker
4a45341559 Issue #1795: remove menu items and code for explain analyzer on mariadb.org, which is no longer available 2023-07-15 14:30:39 +02:00
Ansgar Becker
d512e890e0 Fix wrong comparison of table and org_table in PMYSQL_FIELD. Found while looking for the cause of issue #1818 2023-05-31 17:23:15 +02:00
Ansgar Becker
7d9f59381f Support serial columns in Posgres, which is different from auto_increment on MySQL. Affects grid editing and table designer. Closes #279 2023-05-13 10:03:07 +02:00
Ansgar Becker
ac9028c627 Set minimum dimensions in SQL help dialog, to prevent the user from resizing the panels up to an unusable state. Closes #1805 2023-05-10 06:47:00 +02:00
Ansgar Becker
184b064f1b Sequal suggest:
* add combo box with recent prompts
* add Sequal logo with link in lower corner of dialog
* remove port number from API url
* unify user agent
* remember form dimensions and last prompt
2023-05-08 07:10:31 +02:00
Ansgar Becker
d5acd1358a Basic implementation of Sequal Suggest as a dialog, under Tools. For generating SQL queries through natural language. 2023-05-01 16:08:12 +02:00
Ansgar Becker
6c7f80ab62 Issue #1800: wrap column default expression in parentheses on MySQL v8.0.13+ when altering a table 2023-04-28 19:00:52 +02:00
Ansgar Becker
8f2e761828 Issue #1800: attempt to distinguish text values from function expressions in a column's default value, for MySQL 8.0.13+ which seems to allow just all functions as default value. 2023-04-28 14:44:54 +02:00
Ansgar Becker
2a28d39b3e Do not cut trailing zeros in scientific values like 2.0e30 => 2.0e3. Closes #1793 2023-04-07 10:32:49 +02:00
Ansgar Becker
d9d1f26278 Auto detect need to create HTML clipboard header, remove CreateHTMLHeader parameter from StreamToClipboard() 2023-04-06 08:07:58 +02:00
Ansgar Becker
85928522cf Refactor HTML clipboard code. See https://www.heidisql.com/forum.php?t=9893 2023-03-30 07:35:44 +02:00
Ansgar Becker
a7d76c0916 Make HTML export format compatible to Google Chrome. See https://www.heidisql.com/forum.php?t=9893 2023-03-29 21:38:24 +02:00
Ansgar Becker
82b1a0fe8f Support ON UPDATE SET DEFAULT and the same for ON DELETE in PostgreSQL foreign keys. See https://www.heidisql.com/forum.php?t=40413 2023-03-06 20:12:13 +01:00
Ansgar Becker
0fedb314eb Issue #1771: add additional sleep time between SSH process checks, so it does not matter when WaitForSingleObject does not really wait (on Wine) 2023-03-01 09:17:28 +01:00
Ansgar Becker
603e162ba7 Issue #1771: prefer a larger SSH process check interval for larger timeouts (timeout:4s => check interval:400ms), and log process exit code each interval. 2023-02-28 05:50:36 +01:00
Ansgar Becker
bff590e26c Auto-set the first SSH executable from the dropdown when user activates SSH tunnel checkbox. See https://www.heidisql.com/forum.php?t=40399 2023-02-27 20:34:02 +01:00
Ansgar Becker
082574d340 Support canceling SQL export before a table's data has been completed. Closes #1516 2023-02-27 19:44:59 +01:00
Ansgar Becker
695a26eaf3 Ensure max INSERT setting is an Int64, so a huge value does not wrap into a negative value. See https://www.heidisql.com/forum.php?t=40393 2023-02-27 19:40:13 +01:00
Ansgar Becker
ab8a4ea9b1 Turn crash into error dialog, on search and replace dialog, when regular expression is invalid 2023-02-08 20:49:30 +01:00
Ansgar Becker
616c49c227 Issue #1226: switch back to TSynHotKey again, after using THotKey in shortcut customizer since b4926f3f57 . Fixes non assignable Enter and Del hotkeys, probably more. This time we don't touch the original TSynHotKey for custom fixes, but through the new TExtSynHotKey. 2023-02-05 15:21:49 +01:00
Ansgar Becker
f2cc5124d3 Restore previous scroll position after saving routine, trigger, event or view. See https://www.heidisql.com/forum.php?t=40291 2023-01-26 09:57:42 +01:00
Ansgar Becker
4abc5c1b3d Reduce crash probability in TSecureShellCmd.Connect when user disconnects from session before tunnel is reestablished. 2023-01-26 08:11:39 +01:00
Ansgar Becker
a34b89d37a Strip comments from current query before trying to detect a table alias. Closes #1753 2023-01-25 18:32:27 +01:00
Ansgar Becker
c509a54b03 Widen import button on very first tab of session manager, so translations fit to it. Closes #1752 2023-01-24 18:47:58 +01:00
Ansgar Becker
075aa18bc7 Refactor: Move connection reference out of TSortItems.ComposeOrderClause, so the caller must pass it as a parameter 2023-01-22 13:34:01 +01:00
Ansgar Becker
0e6d814e03 Replace two versions of TSortItem.Create with an even simpler TSortItems.AddNew function 2023-01-22 13:23:51 +01:00
Ansgar Becker
dde9615abd Find a better alternative to d262a6acc9 : set descending column order on first header click when shift key is pressed . See https://www.heidisql.com/forum.php?t=40243 2023-01-22 12:57:14 +01:00
Ansgar Becker
7ff9b2e9b7 Refactor internal structures for grid/table sorting, prefer TObjectList over Array 2023-01-22 12:49:53 +01:00
Ansgar Becker
4ccf6e07f8 Do not auto-create "c:\Users\Anse\Documents\HeidiSQL\", as we only use it for snippets which can also have a custom path. Closes #1751 2023-01-19 20:31:25 +01:00
Ansgar Becker
4358406ac2 Issue #1717: block too fast and overlapping calls of refresh action, to reduce crash probability 2023-01-18 20:17:36 +01:00
Ansgar Becker
498ebfb5e1 Fix crash due to reset AppSettings.SessionPath through LogSQL() 2023-01-18 07:36:57 +01:00
Ansgar Becker
5ce198cdcc Attempt to fix a crash, happening in some cases when user focuses a tree node in a different connection 2023-01-17 20:40:34 +01:00
Ansgar Becker
dc0fe1afd6 Issue #1568 and issue #1737: exit OnPaintTransient event handler on interlocked calls 2023-01-14 12:37:39 +01:00
Ansgar Becker
d262a6acc9 Switch sorting order on data grid header clicks, so the first click makes it descending now, second one ascending. See https://www.heidisql.com/forum.php?t=40243 2023-01-12 19:02:36 +01:00
Ansgar Becker
0678d4a9c9 Hide SSL tab when no session is selected 2023-01-10 20:46:48 +01:00
Ansgar Becker
9c5da0f699 Issue #921: add SSH tunnel support for SQL Server in TCP/IP mode. "SSH tunnel" tab is not hidden any longer for unsupported network types, only the checkbox is disabled then. 2023-01-10 20:28:43 +01:00