4620 Commits

Author SHA1 Message Date
2ea193992c Reset timezone in SQL exports to zero offset, to be independent from local date/times. See https://www.heidisql.com/forum.php?t=38078 2021-06-23 21:21:39 +02:00
8d949575cd Issue #932: fix crash with new color setting when switching from query tab to data tab 2021-06-23 08:37:31 +02:00
ff9c467f8c Issue #932: use background color of active session for query gutter 2021-06-22 21:13:06 +02:00
cb1024b048 Fix more potential theme related EAccessViolation's, due to Action:=caFree in OnClose event of modal forms. Their caller now frees these modal forms. In non-modal forms, keep caFree in OnClose but remove existing OnDestroy events, moving code to OnClose instead.
https://www.heidisql.com/forum.php?t=38043
https://stackoverflow.com/questions/2075405/how-to-close-non-modal-form-in-delphi
2021-06-22 20:37:34 +02:00
963085463d Issue #932: use session background color for query result tabs, so it's clear to which connection they belong 2021-06-22 16:06:14 +02:00
c634dcf06e Attempt to fix theme related crashes through OnClose event of dialogs with caFree. See https://www.heidisql.com/forum.php?t=38043 2021-06-21 20:53:26 +02:00
724c43256d Query tabs: prefer setting width and height of a new query tab memo like the current tab 2021-06-20 08:38:42 +02:00
a78075681c Fix two compiler warnings 2021-06-17 08:53:55 +02:00
ac66de31bb Support filenames with accented chars in text file import dialog. Closes #1387 2021-06-15 07:46:58 +02:00
4c959ded83 Silence a harmless access violation in ApplicationDeActivate, triggered by changing the VCL style 2021-06-14 20:08:47 +02:00
22d7da3ff8 Performance: call RefreshBackgroundColors only during RefreshSessions and btnSaveClick, not in ListSessionsFocusChanged 2021-06-13 12:11:08 +02:00
28d25e3334 Revert a144466e7137f1c33c39c231dbeb4cd98dfc4ffa : query exact row count from tables and views. See https://www.heidisql.com/forum.php?t=37983 2021-06-10 07:42:50 +02:00
19677fa7f0 Let a second version of EscapeString decide itself whether to quote a string, based on the given datatype. Closes #1386 2021-06-09 20:10:00 +02:00
7b0705df28 Disable build update button for 32bit version, so I only have to provide 64bit builds (while still supporting releases in 32 bit) 2021-06-06 17:24:36 +02:00
9eb37d0a02 Catch some potential file related exceptions in text file import. See https://www.heidisql.com/forum.php?t=37974 2021-06-06 08:26:12 +02:00
86d2c5b07c Fix nonsense text in filter box and memo of new query tabs 2021-06-05 15:07:34 +02:00
2b29b51aaf Performance: Let TMainForm.RefreshHelperNode update only the active tab, not all open tabs. Do further calls to RefreshHelperNode when active tab gets switched. See https://www.heidisql.com/forum.php?t=37961 2021-06-05 14:58:18 +02:00
a241b6920d Issue #710: add menu item for closing query tabs to the right of the mouse click coordinates 2021-06-05 08:43:47 +02:00
68bfd31289 Issue #710: add menu items for closing all query tabs 2021-06-05 08:15:25 +02:00
bfdac309c0 Remove closing PHP tag from export as PHP array
From the PHP manual[1]:

> The closing tag of a PHP block at the end of a file is optional, and in some
> cases omitting it is helpful when using include or require, so unwanted
> whitespace will not occur at the end of files, and you will still be able to
> add headers to the response later. It is also handy if you use output
> buffering, and would not like to see added unwanted whitespace at the end of
> the parts generated by the included files.

1: https://www.php.net/manual/en/language.basic-syntax.instruction-separation.php#example-41
2021-06-05 07:40:54 +02:00
68b3bfa556 Refactor: move TMainForm.QueryTabActive to TQueryTabList.HasActiveTab 2021-06-05 07:38:09 +02:00
bf31dfc7d7 Refactor: merge both overloaded TQueryTabList.TabByControl methods into a generic one, which accepts any TWinControl descendant 2021-06-04 14:30:43 +02:00
87db1a162d Move some more query tab related code out of TMainForm into TQueryTabs 2021-06-04 09:03:47 +02:00
db0affdfe1 Loading an sql file does not activate its tab, e.g. when loading multiple files. Fix crash happening when active tab is not a query tab in such cases. See https://www.heidisql.com/forum.php?t=37945#p37959 2021-06-04 08:01:46 +02:00
a144466e71 Experimental: query exact row count from tables and views, in data tab and table tools 2021-06-03 09:27:13 +02:00
193c07a65e Code cosmetic: shorten reference to mainform handle 2021-06-03 08:36:14 +02:00
dd38ba4f6f Code cosmetic: rename implodestr() to Implode() 2021-06-03 08:32:06 +02:00
e4addf6b15 Fix duplicated variable assignment 2021-06-03 08:19:22 +02:00
fcfb6ea140 Modify TQueryTab.LoadContents so it only catches crashes in ReadTextfile(), and let the remaining unsuspicious code run without catching a crash. This way we should get an exact crash report here: https://www.heidisql.com/forum.php?t=37945#p37957 2021-06-03 08:16:05 +02:00
0acf6bbc41 Move menu items for previous and next tab from Tools to Go-To main menu 2021-05-29 12:21:34 +02:00
0c6d20640a Minor optimization in TDBObject.GetTableColumns, where quite a few EListError crashes happen: Duplicates not allowed 2021-05-27 21:02:22 +02:00
869993e45d Fix unusable search/replace dialog in views and procedures. Closes #1376 2021-05-24 14:17:34 +02:00
07e1786d46 * fix wrong substring offset in TForeignKey.SQLCode
* fix TForeignKey.ReferenceTableObj with dots in database name
* use the fixed TForeignKey.ReferenceTableObj instead of .ReferenceTable in two places
Closes #1364
2021-05-23 09:25:08 +02:00
bee6acab7b Issue #1375: Leave EXPLAIN menu items enabled for SQLite as well. 2021-05-22 13:56:11 +02:00
193cba67f4 Support EXPLAIN query on PostgreSQL, and fix wrong menu item state in some cases. Closes #1375 2021-05-22 13:50:21 +02:00
b5449c055d Table tools: auto-fit column widths with each result grid update, and show execution time in main status bar 2021-05-20 22:34:16 +02:00
499a6c3064 Unhide public schema on Redshift. See https://www.heidisql.com/forum.php?t=37911 2021-05-17 15:00:21 +02:00
e7c4035869 Remove experimental flag from SQLite network type 2021-05-15 08:51:52 +02:00
7883fd5baa Fix non-loaded previously used search and replace text in drop-down 2021-05-15 08:49:10 +02:00
b55e71d016 Fix unnecessarily wrapped download link on update-check 2021-05-15 08:37:26 +02:00
b6223d25bc Issue #135: leave unfinished Clickhouse support away from the master branch, for the next release 2021-05-15 08:29:40 +02:00
4fc2063449 Fix crash after encountering unsupported NetType session setting. And don't ask the user to report that as a bug, in the prior error dialog. 2021-05-15 08:25:40 +02:00
e0d3563c43 Issue #136: support read-only grid text editor in search/replace dialog, when query result is non editable 2021-05-13 11:13:52 +02:00
cdc8481471 First attempt to manipulate the CREATE table code in SQL exports when source is a MySQL server and target is MariaDB. This just removes the incompatible "COLLATE xyz" clause from virtual varchar columns. 2021-05-12 18:16:21 +02:00
549cb86d75 Move responsibility for lowercasing hex content from the caller to the implementation, so we get the same display everywhere, including grid exports 2021-05-12 15:48:38 +02:00
6f1726ebf8 Add context menu for copying download link 2021-05-09 12:22:36 +02:00
976dd6b742 Turn release-download button into a link label, displaying a second link to a message dialog with instructions for a portable update. See https://www.heidisql.com/forum.php?t=37843 2021-05-08 17:21:02 +02:00
c5d95c1ce2 Modify release-download-button, so it points to the portable download link if the running version is a portable 2021-05-08 09:27:15 +02:00
940bbb7470 Fix logged queries duration in "one go" mode. See https://www.heidisql.com/forum.php?t=37878 2021-05-07 08:19:07 +02:00
25bfa58937 Detect pressed shift key before prompting for filter value. Closes #588 2021-05-06 08:00:13 +02:00