Commit Graph

4274 Commits

Author SHA1 Message Date
Ansgar Becker
525b0b4edc Code maintenance: Remove unused control tags, turn check menu items into TAction's, and refactor some code parts. 2012-08-02 22:15:35 +00:00
Ansgar Becker
44782e5129 Avoid usage of ExtractFilename for session registry keys, as this cuts strings at characters which are not allowed in filenames, but allowed in registry keys. Fixes issue #2909. 2012-07-31 07:39:27 +00:00
Ansgar Becker
56e0d8b445 Implement session folders. Fixes issue #1228. 2012-07-27 06:54:56 +00:00
Ansgar Becker
1d6bc760c8 Restrict HTML formatter for SQL INSERT/REPLACE output in grid export dialog to 100kb, as SynEdit is just too slow when exporting larger strings. Fixes issue #2903. 2012-07-26 17:02:28 +00:00
Ansgar Becker
98028e8344 Issue #1031: Fix non processed table nodes in table tools dialog, due to activated grouping in tree. See http://www.heidisql.com/forum.php?t=10883 2012-07-20 08:52:53 +00:00
Ansgar Becker
69d4cdd2c1 Issue #1228: Auto-sort session list. Important when restoring tree state. 2012-07-20 06:02:14 +00:00
Ansgar Becker
82668cca67 Issue #1228: Introduce new columns in session managers list of sessions: "Last connect" and "Counter". 2012-07-19 09:08:42 +00:00
Ansgar Becker
796dbb1a05 Issue #1031: Include group name in window caption breadcrumb trail. 2012-07-19 08:44:22 +00:00
Ansgar Becker
08ec09c3dd Fix issue #1031: Have folders for tables, views, routines in database tree. 2012-07-19 07:07:50 +00:00
Ansgar Becker
87ce4d99c7 Turn off any SQL_MODE locally, before running "SHOW CREATE db/table" queries, so there results do not use ansi quotes. Fixes issue #2619, finally. 2012-06-17 11:34:18 +00:00
Ansgar Becker
59e6e7710d Fix memory leak: ExportStream was recreated for each table in export loop 2012-06-17 11:31:33 +00:00
Ansgar Becker
f31867bd5c Revert r3976 (removal of SQL_MODE handling in export), and revert r3988. Use a IF(@OLD_XYZ IS NULL, 0, @OLD_XYZ) approach instead. This way we fix unwanted auto_increment values for "0", and foreign_key_checks are restored to its previous value instead of 0. Fixes issue #2870 and might also be related to issue #2619. 2012-06-17 10:43:26 +00:00
Ansgar Becker
8af6d3c900 TDBQuery.GetWhereClause uses an empty string on a not yet fetched, inserted row. So a numerical cell which is part of a primary/unique key gets into the WHERE clause without any value. Fix that by using "0" as a default if it's an empty string. Avoid usage of UnformatNumber(), which I removed in r4047. Fixes issue #2867. 2012-06-12 19:50:48 +00:00
Ansgar Becker
3ead3f8ef6 Fix broken loop variable in batch SQL counting. Fixes issue #2860 2012-05-31 16:56:29 +00:00
Ansgar Becker
c489504bc8 Fix non-stored checkbox state for local timezone feature, missing in r4152 2012-05-31 15:18:22 +00:00
Ansgar Becker
3dffe2880e Use InputQuery instead of InputBox, so we can use the focused cell content as default value and check if user clicked ok or cancel. See http://www.heidisql.com/forum.php?t=10729 2012-05-30 17:41:38 +00:00
Ansgar Becker
7537d848bc Rethink r4111: Recalculate height of query editors and SQL log if the space for the query grid between them gets too small so the grid gets overlapped. This time without making the SQL log too small so it does not snap and keep having a zero height. Fixes issue #2855. 2012-05-28 09:08:20 +00:00
Ansgar Becker
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
Ansgar Becker
764e87b98b Fix misplaced destruction of column list which gets used a line later 2012-05-23 09:47:59 +00:00
Ansgar Becker
2d8d8e9f36 Get additional column names into SELECT query and ListProcesses tree. See http://www.heidisql.com/forum.php?t=10687 2012-05-22 22:32:05 +00:00
Ansgar Becker
6d34e81f15 Escape joker chars in automated LIKE filter for data tab. Fixes issue #2852. 2012-05-22 17:09:42 +00:00
Ansgar Becker
05b832a9bb Use the right color for inactive nodes. 2012-05-21 17:14:03 +00:00
Ansgar Becker
1f313df20e Remove TServerVariable.VarType property, and detect that by only examining the value. Fetch list of variables from a more complete documentation table which also reveals their read/write state. Also, paint variable values in data type colors. 2012-05-20 22:17:57 +00:00
Ansgar Becker
548eb4003f Catch EInvalidOp exceptions from calls to Trunc(), caused by unsigned Int64 values in string parameters of MakeInt(). 2012-05-20 12:25:44 +00:00
Ansgar Becker
aaf80e7d93 Limit SET time_zone query to 4.1.3+ servers, to fix "Unknown system variable time_zone" error on old servers. 2012-05-20 12:10:41 +00:00
Ansgar Becker
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
Ansgar Becker
0f4ec0b3e9 Fix wrong spelled character sets in HTML files, exported from grids. Fixes issue #2825 2012-05-19 10:25:04 +00:00
Ansgar Becker
18bcbd8235 Support insertion of SQL function calls in grid cells, via context menu and shortcut Ctrl+F2. Also, reload full row data after INSERT and UPDATE. 2012-05-18 17:01:59 +00:00
Ansgar Becker
de504e4a18 Detect client timezone in TMySQLConnection.DoAfterConnect and send SET time_zone to the server, so that NOW() and friends return UTC-fixed values. See http://www.heidisql.com/forum.php?t=10635 . Breaks grid editing of date/time values, issue #1835, while timestamp columns use server magic. 2012-05-17 06:18:23 +00:00
Ansgar Becker
30474de294 Encode more unsafe characters in urls 2012-05-01 12:10:17 +00:00
Ansgar Becker
62c0396165 Separate version from app name using slash instead of space, which seems most commonly 2012-05-01 09:00:27 +00:00
Ansgar Becker
e8b6de3b6f Include operating system in user agent 2012-05-01 08:56:36 +00:00
Ansgar Becker
5e8bf8306a Remove unused unit inclusions, detected by CNPack/Uses cleaner 2012-05-01 08:34:12 +00:00
Ansgar Becker
4e5783a510 Missing file for previous commit 2012-05-01 07:05:15 +00:00
Ansgar Becker
5cb54b3711 Remove helper function ToggleCheckListBox, replace the few callers with simple code alternatives 2012-05-01 06:50:57 +00:00
Ansgar Becker
3e2d4371a3 Implement home brown "THttpDownload" class, making use of the Internet_* methods from WinINet unit. Replaces "TDownloadUrl2" class. Fixes single char in user agent. 2012-04-29 06:37:24 +00:00
Ansgar Becker
276797ed52 Code cosmetic: Move MODIFIEDFLAG to const.inc 2012-04-26 04:44:36 +00:00
Ansgar Becker
a9260a49d6 Fix black tree background, broken in previous commit. 2012-04-22 12:10:06 +00:00
Ansgar Becker
1b5285bb0e Introduce TConnectionParameters.SessionColor property to hold the tree background color, and use that to paint the background of relevant nodes only, instead of the whole tree. See http://www.heidisql.com/forum.php?t=10133 2012-04-22 08:40:30 +00:00
Ansgar Becker
af747da0b6 Add server specific icons for TokuDB, InfiniDB and Infobright. Fixes issue #2795. 2012-04-13 15:43:55 +00:00
Ansgar Becker
a7af9a9a2c No use for procedure debug() any longer. 2012-04-09 17:44:17 +00:00
Ansgar Becker
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
Ansgar Becker
8bc905b02f Add postfix to query result tabs so captions are unique. See http://www.heidisql.com/forum.php?t=10493 2012-04-07 06:47:14 +00:00
Ansgar Becker
1858c04d82 Usermanager: Host may contain uppercase chars, it's just case sensitive, as stated on http://bugs.mysql.com/bug.php?id=19828 . Allow uppercase host names, which may cause errors when selecting such users, but as we have a exit-logic here that does not show AVs to the end user. 2012-04-06 09:03:26 +00:00
Ansgar Becker
b82319a7f1 Display formatted query time if query took longer than 60 seconds. Fixes issue #2813. 2012-04-06 08:47:49 +00:00
Ansgar Becker
1230b9c6a1 Do not offer "show all warnings" button if SHOW WARNINGS LIMIT 5 returns less than 5 warnings. 2012-04-06 08:38:50 +00:00
Ansgar Becker
1a4e54c88c Auto switch to origin "from cursor" for second and later search actions, so it does not find the first one again and again. Fixes issue #2730. 2012-04-01 17:56:28 +00:00
Ansgar Becker
1f0146b460 Use "Entire scope" as the default origin option in search + replace dialog. Fixes issue #2731. 2012-04-01 17:40:57 +00:00
Ansgar Becker
75e69ec3ab Detect --skip-name-resolve server option in usermanager, and disable users where that would cause "There is no such grant..." errors when firing "SHOW GRANTS FOR ...". On older servers there is no server variable for that detection, so as a fallback the "SHOW GRANTS FOR ..." errors are try/caught and the user node gets disabled lately. See r4101 and http://www.heidisql.com/forum.php 2012-04-01 09:30:40 +00:00
Ansgar Becker
40234cd3f4 Work around a magic automatic TAB key arriving the pulldown grid editor if the user got into this cell via TAB. Only seen for a TComboBox with style=csDropDown. Fixes issue #2809. 2012-03-31 10:56:44 +00:00