Commit Graph

4960 Commits

Author SHA1 Message Date
Ansgar Becker
2ef4662b48 Catch additional EReadError crash in RunQueryFile 2023-10-23 21:08:09 +02:00
Ansgar Becker
904274d521 Issue #1640: Attempt to fix crash in MouseUp event of query tab close button, through closing/freeing the tab and button through a timer event 2023-10-23 20:33:40 +02:00
Ansgar Becker
084faa3d6a Leave SQL help buttons always enabled and let the error dialog tell the user when the server does not support the HELP command 2023-10-22 17:11:46 +02:00
Ansgar Becker
39817f2cce Fix crash when user clicks Help button on maintenance dialog, in a non-MySQL session 2023-10-22 12:23:35 +02:00
Ansgar Becker
3651da00bf Fix EAccessViolation in TMainForm.AnyGridGetText:5 2023-10-22 11:46:29 +02:00
Ansgar Becker
82567b0c09 Catch different EInOutError exception happening in rare cases of ForceDirectories() 2023-10-22 11:39:45 +02:00
Ansgar Becker
63d0e7b942 Fix EAccessViolation in TMainForm.DBtreeGetText:12 2023-10-22 11:28:22 +02:00
Ansgar Becker
ad0305c574 Fix EAccessViolation in TDBObject.GetImageIndex:6 2023-10-22 11:13:46 +02:00
Ansgar Becker
dead25d63c Silence sporadic EAccessViolation in DBtreeBeforeCellPaint, when reading DbObj.Connection.Parameters, found in uploaded reports 2023-10-22 10:57:27 +02:00
Ansgar Becker
99fdbe8b4b Issue #1863: prevent remaining 4 SendMessage calls in Wine 2023-10-22 10:16:43 +02:00
Ansgar Becker
f274022f1b Issue #1863: prevent from SendMessage in StatusBarMouseMove within Wine 2023-10-20 15:24:47 +02:00
Ansgar Becker
5f58608e90 Issue #1863: add missing PMYSQL_LENGTHS type, and use this for the result of mysql_fetch_lengths(). Replacing and fixing an issue broken since 2009 in c0a9b63f98 2023-10-20 12:59:47 +02:00
Ansgar Becker
ab33f73d07 Fix crash when trying to stop current query and the helper connection cannot connect for some reason. 2023-10-20 07:14:35 +02:00
Ansgar Becker
0c94e93198 Issue #1863: attempt to fix a Wine crash in TMySQLQuery.SetRecNo 2023-10-20 06:55:55 +02:00
Ansgar Becker
66d4e2051e Try to fix another crash in DBtreeFocusChanged (FActiveObjectGroup := ParentDBObj.GroupType) 2023-10-19 19:43:46 +02:00
Ansgar Becker
f4adbc7faa Silence a popular crash in DBtreeFocusChanged, when trying to detect whether the user clicked into a different session 2023-10-19 19:29:31 +02:00
Ansgar Becker
e36a8d7201 Issue #1863: catch any exception in GetExecutableBits. PImageNtHeaders.Signature does not seem to be accessible on Wine. 2023-10-19 19:12:51 +02:00
Ansgar Becker
aea26ae5f0 Another attempt to fix a crash on Wine in TMainForm.ShowStatusMsg, now by preventing immediate repaint. SendMessage does not raise exceptions. 2023-10-16 21:56:00 +02:00
Ansgar Becker
19fa0c13b9 Fix crash in highlighter customizer, as long as no attribute is selected 2023-10-16 21:36:45 +02:00
Ansgar Becker
afa387ab87 Fix crash on user manager, with recently updated VirtualTrees code, in .ReinitNode() while tree is yet invisible 2023-10-16 20:59:06 +02:00
Ansgar Becker
da4a327eee Fix sporadic crashes in various calls to [TWinControl].SetFocus, with the new class helper .TrySetFocus 2023-10-16 20:50:10 +02:00
Ansgar Becker
79962b03fc Remove ineffective/unused toVariableNodeHeight from TreeOptions.MiscOptions of data and query grids, as this triggers a ReinitNode in the recently updated VirtualTrees code. See SetMiscOptions(). 2023-10-15 13:05:28 +02:00
Ansgar Becker
05a3e5df9a Update VirtualTrees component code to release v7.6.5a 2023-10-15 11:19:09 +02:00
Ansgar Becker
de51a4bace Fix non-grayscale icon on table editor tab while query tab is active. Related to https://www.heidisql.com/forum.php?t=41323 2023-10-13 08:22:55 +02:00
Ansgar Becker
26df75b01e Fix wrong column index passed in actDataInsertExecute(). Closes #1861 2023-10-13 06:37:57 +02:00
Ansgar Becker
2f44c9a11c Create a separate option to enable/disable middle-click for tab closing. See https://www.heidisql.com/forum.php?t=41347 2023-10-12 19:25:07 +02:00
Ansgar Becker
0444ebbdb7 Issue #861: support hiding row id column through new preference checkbox 2023-10-12 07:27:00 +02:00
Ansgar Becker
fa571f72da CSV scanner: fix crash when selected filename cannot be opened 2023-10-11 06:42:43 +02:00
Ansgar Becker
62f27dbf0a Add code for TClipboardHelper.TryAsText, missing in previous commit 2023-10-10 17:23:46 +02:00
Ansgar Becker
86a8840cc0 Introduce TClipboardHelper.TryAsText, suppressing crashes when the OS blocks access to the clipboard. Replaces my previous GetClipboardAsText implementation. 2023-10-10 07:12:15 +02:00
Ansgar Becker
495ced5bae Issue #861: same style for row id column in grid and table editor 2023-10-10 06:42:52 +02:00
Ansgar Becker
9f05f5ff8b Fix crash in various places where we just try to get the current clipboard text 2023-10-09 07:24:24 +02:00
Ansgar Becker
2d648c60bb Issue #861: fix crash in data grid when row id column has focus, and ensure that column never gets focus 2023-10-09 06:51:59 +02:00
Ansgar Becker
4479f4f5d5 Fix crash "Cannot make a visible window modal" in actQueryFindReplaceExecute:8, found in uploaded reports. 2023-10-08 17:28:08 +02:00
Ansgar Becker
11701d08aa Issue #861: fix wrong column index passed in UpdatePreviewPanel() 2023-10-08 17:20:48 +02:00
Ansgar Becker
b631bf1a93 Try to fix a crash in TMainForm.DBtreeFocusChanged:90, reported several times per upload, happening directly after connecting to a second session. 2023-10-08 16:07:25 +02:00
Ansgar Becker
d014b66b62 Issue #861: fix wrong column index passed to HandleUnixTimestampColumn() 2023-10-08 12:42:01 +02:00
Ansgar Becker
d4838e5198 Fix another bug after following a foreign key value, broken somewhere in issue #156 2023-10-08 12:22:56 +02:00
Ansgar Becker
a3d0958ecb Issue #861: add a read-only #/rowid column as the first one in query and data grids 2023-10-08 12:05:24 +02:00
Ansgar Becker
d28d03b6dd Highlight active tab of most page controls, by adding greyscale icons to image list and using these for all inactive tabs. See https://www.heidisql.com/forum.php?t=41323 2023-10-03 13:34:28 +02:00
Ansgar Becker
5316e2c0da Issue #750: add Andi's reformatter on sqlformat.org as a third option to format the current SQL code 2023-10-02 18:18:01 +02:00
Ansgar Becker
066ea65885 Fix rare crash in Tconnform.Modification, found in recently uploaded crash reports 2023-10-01 16:37:53 +02:00
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