143 Commits

Author SHA1 Message Date
7ff9b2e9b7 Refactor internal structures for grid/table sorting, prefer TObjectList over Array 2023-01-22 12:49:53 +01:00
2c609a6c61 Issue #1725: add history menu pulldown to global filter edit box 2022-12-09 16:46:08 +01:00
6e36423121 Issue #1540:
* create TDBConnection.IsHex(), and prefer that in all places where we check for a hex value
* fix characters g-z detected as hex chars
* make detection faster than a regex, and check first kilobyte only
2022-03-02 20:13:09 +01:00
8e9b667c4b Issue #1540: use hex format in foreign key pulldown for binary columns 2022-03-02 15:59:28 +01:00
2036f15263 Issue #1503: Fix too small font and height of items in completion proposal dialog. See https://www.heidisql.com/forum.php?t=38782 2022-02-04 19:58:49 +01:00
54166561d8 Apply data type colors to column names in completion proposal, and move formatting code to new apphelpers.SynCompletionProposalPrettyText() 2020-12-28 13:18:26 +01:00
5e675a51d8 Code cleanup: move some node index constants to TQueryTab, and probably prevent AV in treeQueryHelpersInitChildren 2020-12-16 18:15:52 +01:00
154272d9b3 Move one constant out of const.inc into TAppSettings structure 2020-08-07 08:33:24 +02:00
ea68cddb24 Use different sets of characters not requiring quotes, per connection type. Use that to force quotes around columns with uppercase characters in PostgreSQL. Closes #1072. 2020-06-27 16:10:30 +02:00
843e462a8a Issue #946: integrate context menu items for attaching and detaching SQLite databases into the current session 2020-03-24 17:53:22 +01:00
40908f1bef Issue #885: Move types of table keys from global scope constants to class constants in TTableKey definition, to make them stable against mix-ups 2020-02-15 12:51:08 +01:00
d56784c37a Move MySQL/MariaDB constants from const.inc to dbstructures.pas 2019-08-02 08:50:27 +02:00
430ea3bde6 Issue #140: make auto-backup/restore feature stable against running multiple application instances:
* use unique date/time with milliseconds as ini sections
* open ini file for each read + write, separately, don't keep it open all the time
2019-04-10 12:19:40 +02:00
30694567e5 Issue #140: Auto-backup unsaved query tab contents to C:\Users\<username>\AppData\Roaming\HeidiSQL\Backups\*.sql, and tab setup in C:\Users\<username>\AppData\Roaming\HeidiSQL\tabs.ini 2019-04-07 13:14:33 +02:00
0fb341bb88 Issue #140: add "Files" tab to preferences dialog, move "Prompt for file save" checkbox there, and introduce two new checkboxes for restoring opened and unsaved query tab contents (both new yet without functionality in their back) 2019-03-17 11:57:09 +01:00
0d626096b3 Remove no longer used constant FORMS_DPI 2018-12-30 12:50:09 +01:00
8675906d6f Expect a portable.lock file for running in portable mode, but gracefully also allow the portable_settings.txt to do the job. Future portable releases don't need to contain a portable_settings.txt from now on. Closes #122 2018-12-08 16:09:31 +01:00
b6a1fc23a4 Fix compile error, due to missing file in commit:611c3111537a91d2f92d719e349a37498a7e0f49 2018-11-26 19:39:15 +01:00
36c5d90d39 Use unsecured heidisql.com url in donor check if secure one did not work. Closes #65 2018-01-02 18:55:06 +01:00
31dc8f3f97 Use unsecure project web url for donor checks, as the ssl certificate seems not accepted on some Wine systems. 2017-03-05 17:40:11 +00:00
9d2e0f41a7 Use HTTPS for all web requests on heidisql.com 2017-02-20 17:51:12 +00:00
9cc8af14d6 Missing constant CLIENT_CAN_HANDLE_EXPIRED_PASSWORDS, see previous commit. 2016-06-13 18:08:34 +00:00
187a56abe6 Format byte numbers so that we never get a thousands separator in it. Prevents us from running into a conversion bug in helpers.CleanupNumber(). See http://www.heidisql.com/forum.php?t=20612 2016-02-07 11:42:17 +00:00
c890cf5172 Internally handle MySQL's native column types in an enumeration, not as constants. See mysql.h.pp in the MySQL server code. 2015-11-19 19:54:59 +00:00
a2dfca0f00 Add new MySQL internally used date/time data types. See https://bugs.mysql.com/bug.php?id=67992 2015-11-19 19:32:31 +00:00
cbbfcb268f Add basic support for MySQL's new JSON data type. See http://www.heidisql.com/forum.php?t=19870 2015-11-19 19:23:11 +00:00
82c960ceb1 Add support of bind parameters. Fixes issue #1325 2014-02-10 18:30:47 +00:00
4aabebe6bb Remove unused constant 2014-02-08 10:29:24 +00:00
ef761a897f Append parameter names for procedures and functions in completion proposal 2013-11-20 05:14:34 +00:00
a38c70b99e * Try a new approach in helpers.OpenTextFile(), helpers.ReadTextfile() and helpers.ReadTextfileChunk(): Based on TStreamReader instead of TFileStream now, so we can finally rely on Delphi internals for detecting a file's encoding. Also, this should fix read errors in some UTF-8 files, e.g. mentioned on http://www.heidisql.com/forum.php?t=13044
* Remove helpers.DetectEncoding(). Use a separate TStreamReader in the only caller to detect the encoding of a selected file
* Remove helpers.ScanNulChar()
* Remove helpers.RemoveNulChars()
2013-09-04 07:53:44 +00:00
595bebb0e1 Use the right binary instead of decimal prefixes for bytes: KiB, MiB etc. And introduce unit for 2^60 bytes: Exbibyte. See http://de.wikipedia.org/wiki/Byte . 2013-07-15 03:49:49 +00:00
645a9f3c7f Make message strings from const.inc translatable 2012-11-29 06:15:44 +00:00
8d73413de8 Fix and enhance handling of multiple statements and multiple results:
* TMySQLConnection.Query did not process further results if the first one is a non-result. Instead, it disconnected you as the required mysql_store_result() was never called. Fixed now. Should fix the error described here: http://www.heidisql.com/forum.php?t=11049
* Cache result of SHOW VARIABLES, and introduce a MaxAllowedPacket function, which benefits from that cache
* Do not limit the number of statements in "batch in one go" mode, only limit its size. This is to minimize the number of sent packets for a huge numbers of very small queries.
2012-08-27 22:56:12 +00:00
90ab0b6cf1 Refactor logic for reading and writing application and session settings:
* Introduce TAppSettings, created in dpr file
* Implement read and write methods, and replace callers of GetRegValue and MainReg.WriteInt/... with these
* Optimize read and write methods for avoiding redundant accesses to registry
* Auto-remove stored default settings from registry to avoid registry spam
* Replace synced MainForm.pref* variables with TAppSettings.Read* calls
* Move SetLocales call to dpr file
* Move MainForm.FDirname* variables to appropriate methods in helpers.pas
* Implement TQueryHistory.Create(SessionPath), reading its items within constructor
2012-08-19 10:55:08 +00:00
56e0d8b445 Implement session folders. Fixes issue #1228. 2012-07-27 06:54:56 +00:00
08ec09c3dd Fix issue #1031: Have folders for tables, views, routines in database tree. 2012-07-19 07:07:50 +00:00
e2f09b0d8d Make local timezone feature a per session option. See http://www.heidisql.com/forum.php?t=10635 2012-05-25 17:46:57 +00:00
2ef9f4e288 Implement server variable mapping table, and extend the variable editor to explicitly modify strings, numbers, booleans or enumerations, as described on http://dev.mysql.com/doc/refman/5.6/en/dynamic-system-variables.html . Fixes issue #2614. 2012-05-20 08:34:13 +00:00
276797ed52 Code cosmetic: Move MODIFIEDFLAG to const.inc 2012-04-26 04:44:36 +00:00
a9260a49d6 Fix black tree background, broken in previous commit. 2012-04-22 12:10:06 +00:00
6ef3d17042 Use home brown file format for exporting and importing registry settings, as used for portable_settings.txt. Registry dumps cannot be imported into a separate registry key for a portable instance, which is hereby fixed, see http://www.heidisql.com/forum.php?t=10503 . 2012-04-09 17:40:12 +00:00
8a1fa0efc8 Forgotten file in previous commit. 2012-03-19 23:51:34 +00:00
3370a6a4da Add menu item for launching mysql.exe command line with current parameters. Fixes issue #2728. 2012-02-28 23:34:58 +00:00
cedf5d888e Introduce new preference option "Prefill empty date/time fields". Fixes issue #2708. 2012-02-27 22:36:48 +00:00
af3f590723 Use one color pulldown for setting grid text colors, not one per data type. Use all TDBDatatypeCategory's here, so this introduces a separate color for floats and integers, which were "numeric" before. 2012-02-27 22:16:05 +00:00
a86650d10b Introduce a checkbox for explicit activation of SSL. Any combination is passed to the server now, while SHOW STATUS LIKE 'ssl_cipher' is used to find out if the connection is indeed SSL secured. Pops up a warning when SSL settings were ignored by the server. Fixes issue #2672. 2012-01-22 10:17:24 +00:00
0eaccc3938 Make session list and details pagecontrol custom resizable via splitter. Also, do not auto-adjust column width in session list, which has funny effects in some cases. 2012-01-02 07:53:24 +00:00
1a593a24b4 Revert r3979, move imported mysql_* functions from TDBConnection to a global var scope. Fixes issue #2647. Also, move MySQL related structures out of dbconnection.pas into mysql_structures.pas and const.inc. 2011-12-24 08:10:41 +00:00
f6588fb1fc Add support for integrated Windows authentication on SQL Server. See http://www.heidisql.com/forum.php?t=8856 2011-11-19 08:43:10 +00:00
d07cfcb7c6 Provide option "tabs to spaces" in preferences dialog. For space reasons, move highlighter options to new tab "Highlighter". Also, unify padding on tab sheets, and move "Ask for saving files" option to "SQL" tab. 2011-11-10 23:27:02 +00:00