Commit Graph

3944 Commits

Author SHA1 Message Date
Ansgar Becker
59ea094c25 Remove incomplete detection of foreign key support in table engine. Closes #375 2019-05-28 21:13:04 +02:00
Ansgar Becker
8f9abb2d3c Fix unwanted enabling FModified flag in user manager dialog, when just switching the main tab to "Limitations", followed by a crash due to no focused user. Closes #493. 2019-05-26 19:24:46 +02:00
Ansgar Becker
493138de1c Fix wrong check for valid length of hashed password in MySQL 8 and MariaDB. Predefined length of 0, 16 and 41 characters is only valid with mysql_native_password plugin enabled users.
See https://www.heidisql.com/forum.php?t=26945#p27188
2019-05-26 19:00:52 +02:00
Ansgar Becker
dc0d2fdd75 Move red warning label in user manager up a bit. Fixes invisible warnings. 2019-05-26 08:37:39 +02:00
Ansgar Becker
51da7c8efc Set MARIADB_OPT_TLS_VERSION to define which TLS protocol versions are allowed. See https://www.heidisql.com/forum.php?t=27158 2019-05-22 21:36:53 +02:00
Ansgar Becker
8073fc6114 Fix broken drop target index for a dragged column in the index tree. Now taking into account whether the dropped column comes from above or from below. Closes #385 2019-05-20 10:14:26 +02:00
Ansgar Becker
ce29d1b39b Fix crash when drag'n dropping indexed column in table designer. Closes #385 2019-05-19 12:26:01 +02:00
Ansgar Becker
99e095fc39 Fix wrong sorting in database tab and various other lists. Closes #570 2019-05-18 09:58:35 +02:00
Ansgar Becker
178d92e273 Cache the myriad of SELECT 123::regclass queries in a hash table on the PostgreSQL connection object. Closes #249, closes #538 2019-05-18 08:27:50 +02:00
Ansgar Becker
2854c74d13 Remove -batch parameter from plink command line, so we have a prompt when a host key is not yet cached. Closes #639 2019-05-15 20:21:01 +02:00
Ansgar Becker
f893a8de75 Add support for SSH tunneled PostgreSQL connections. See issue #78 2019-05-14 07:57:00 +02:00
Ansgar Becker
927e144cce Set up SSL parameters not only in TCP/IP mode 2019-05-14 06:59:59 +02:00
Ansgar Becker
4bf32b3cb7 Allow using SSL for SSH tunneled connections. See https://www.heidisql.com/forum.php?t=27120 2019-05-14 06:55:10 +02:00
David Rodrigues
9624a9b1bd As suggested by #634
User: @cookieguru
2019-05-13 07:36:24 +02:00
Ansgar Becker
1fe201a172 Restore data grid's horizontal scroll offset after refresh, so the just clicked column header stays at the same position. Closes #451 2019-05-12 20:21:44 +02:00
Ansgar Becker
4119d69fca When creating a query result tab, let the grid be visible until it's aligned correctly. Potentially fixes artefacts at the top left of the query memo. Closes #410. 2019-05-07 20:17:30 +02:00
Ansgar Becker
8ac1c745b1 Issue #640: prevent crashes when future versions of the server return key clauses unsupported by HeidiSQL 2019-05-06 20:33:07 +02:00
Ansgar Becker
3a4578e67b Issue #640: fix crash in table editor with DESC/ASC in a key 2019-05-06 20:24:00 +02:00
Ansgar Becker
97043d368b Issue #74: remove no longer used hackish helper function GetColumnDefaultType() 2019-05-06 06:36:12 +02:00
Ansgar Becker
2f77c9ea8c Issue #637: No need to upper-case when calling StartsWith() with ignore case flag. Also, prefer StartsWith() over various ugly calls to UpperCase(Copy()). 2019-05-06 06:32:09 +02:00
Ansgar Becker
54c6d9123f Detect ON UPDATE clause's content with a two-step approach, so it does not eat a potentially existing COMMENT clause after it. Closes #637. Broken in 9fc7150a9f for #74. 2019-05-05 20:01:46 +02:00
Ansgar Becker
fb02867059 Search on server: Lower-case columns after casting to text, to prevent data type error: "function lower(integer) does not exist". Closes #235 2019-05-03 07:59:47 +02:00
Ansgar Becker
32b0dfceb2 Fix emergency exception when trying to call DeleteCurrentKey without session path, which is reset by MessageDialog() in some cases. Closes #168. 2019-05-03 07:45:59 +02:00
Ansgar Becker
0c35a27fec Issue #411: append search engine's hostname to "Find help" link in error dialogs, now that it's customizable 2019-04-30 12:32:35 +02:00
Ansgar Becker
c3da5956e7 Ensure "Delete row" button state is valid while navigating in a grid by keyboard. Closes #624. 2019-04-30 08:18:35 +02:00
Ansgar Becker
d039aad9be Issue #74: turn expression + on update edit boxes into drop down boxes, with known MySQL functions in them 2019-04-29 14:30:15 +02:00
Ansgar Becker
155cedace9 Revert a part of 406ab56060: Prefer TEncoding.UTF8 again over the TUTF8NoBomEncoding with an overridden .GetPreamble(). The grid export crashed when used a second time, probably because the TStringStream overtakes ownership of the encoding. Also, I see no BOM in files encoded via TEncoding.UTF8, so this was probably a fix for nothing anyway. 2019-04-28 12:42:44 +02:00
Ansgar Becker
591507cf15 Detect MS SQL data type DATETIMEOFFSET as such, not as UNKNOWN. Closes #496 and closes #98 2019-04-22 13:59:46 +02:00
Ansgar Becker
5c2263b294 Fix crash while casting Sender to TAction for debugging purposes 2019-04-22 13:57:08 +02:00
Ansgar Becker
fad93ace54 Issue #496: show UNKNOWN data type in table editor for MSSQL and MySQL, as already for PG. Avoids casting its values to int for the data grid, and at least does not show the data type from the prior column in the table editor. 2019-04-22 13:47:41 +02:00
Ansgar Becker
8f94ece971 Find and replace dialogs in grid popup text editor:
* Cancel dialog when user presses Cancel, regardless of which dialog has focus.
* Show selection when dialog found some text, without having to focus the memo.
2019-04-22 10:03:03 +02:00
Ansgar Becker
4fd77f4fad Issue #140: Flag query editor as modified after pasting text 2019-04-21 20:27:26 +02:00
Ansgar Becker
9fc7150a9f Issue #74: attempt to support all kinds of expressions in column DEFAULT + ON UPDATE clauses 2019-04-21 15:40:18 +02:00
Ansgar Becker
f23e8884a1 Fix TDBConnection.ParseViewStructure so it orders the result from IS.COLUMNS by their ordinal/natural position. Closes #617. 2019-04-19 12:08:23 +02:00
Ansgar Becker
4608390b96 Add preference option for custom web search url, used in error dialogs. Closes #411 2019-04-17 21:29:34 +02:00
Ansgar Becker
2a37a94358 Add new menu item "Duplicate row with keys" to grid context menu, and rename "Duplicate row" to "Duplicate row without keys". Closes #396 2019-04-17 08:24:22 +02:00
Ansgar Becker
91c8ff13f0 Cheat when calculating percentage of done work, when exporting tables and data, so we never get more than 100%. Closes #180 2019-04-17 07:57:35 +02:00
Ansgar Becker
b64b8bf3cf Exchange icon index of "Check all" button on CSV import dialog, to make it more intuitive (?). Closes #612 2019-04-16 19:50:53 +02:00
Ansgar Becker
d735d0088c Don't prompt to save an empty query tab. Closes #614. 2019-04-16 19:36:56 +02:00
Ansgar Becker
85a8355e1d Add new log category lcScript, for queries from large scripts and import operations. By default disabled, which should speed up importing large files. 2019-04-16 07:19:47 +02:00
Ansgar Becker
975e1528e8 Issue #521: make debug output more readable 2019-04-16 06:38:06 +02:00
Ansgar Becker
f870c81770 Issue #521: increase waiting time after PLink output, from 1s to 2s, for slow connections. 2019-04-16 06:32:27 +02:00
Ansgar Becker
9ea65d4ef2 Issue #521: disable verbosity of plink again, due to weird extra dialogs appearing now 2019-04-15 20:15:48 +02:00
Ansgar Becker
63212600ed Issue #515: Handle encoding errors in apphelpers.ReadTextfileChunk according to how Delphi 10.3 raises exceptions. And probably fix the issue by increasing the new chunk size by 1M instead of only 4B. 2019-04-14 19:44:59 +02:00
Ansgar Becker
141c348a5d Issue #521: add -ssh and -v arguments again to plink.exe command, as proposed in https://github.com/HeidiSQL/HeidiSQL/issues/521#issuecomment-482897896 2019-04-14 14:05:21 +02:00
Ansgar Becker
406ab56060 Attempt to fully support UTF8 encoding without BOM, as TEncoding.UTF8 has a non-empty preamble/bom. See https://forums.embarcadero.com/thread.jspa?threadID=112112 . Probably related to encoding issue #515 2019-04-13 10:52:41 +02:00
Ansgar Becker
a2ef1aeccd Issue #140: Store application process id in each tabs.ini section, and don't restore tabs from other running processes. If the process no longer runs, restore such tab sections again, so nothing gets lost with multiple running application instances. 2019-04-13 10:43:52 +02:00
Ansgar Becker
e9cc528632 Issue #140:
* store tab setup when application exits, as the TimerStoreTabs interval may not yet be reached
* remember startup value of asRestoreTabs option, which may change while the application runs, which in turn may cause problems when RestoreTabs wasn't called
2019-04-13 09:32:58 +02:00
Ansgar Becker
f5734fece1 Issue #521: use -batch instead of -ssh parameter for plink, to prevent creating a shell and to reduce interactive prompts 2019-04-13 08:38:35 +02:00
Ansgar Becker
e40210b1b5 Issue #140: Move code for all remaining common directory paths settings to TAppSettings (UserAppData, UserDocuments, Snippets) 2019-04-11 21:47:54 +02:00