Commit Graph

5259 Commits

Author SHA1 Message Date
Ansgar Becker
e59f6cecf6 Move some tree initialization code from session manager's OnCreate event to the later OnShow event, where the session tree has a handle. Fixes no longer working .ScrollIntoView for the last active session. Closes #897. 2020-02-15 07:50:50 +01:00
Ansgar Becker
5a21d3e7c9 Widen buttons on search/replace dialog by one quarter, so translations fit better on them 2020-02-14 17:58:56 +01:00
Ansgar Becker
ad024cb74b Reference table of a foreign key is prefixed with its database, which causes the table editor to display no columns in the dropdown editor. Fix that by outsourcing some logic from main unit into TForeignKey.ReferenceTableObj. Closes #158 2020-02-11 16:56:41 +01:00
Ansgar Becker
ef980de42f Issue #158: detect foreign keys of PostgreSQL tables 2020-02-10 07:52:48 +01:00
Ansgar Becker
8234b97bf0 Fix crash when accessing data from data tab on a disconnected session. Closes #878 2020-02-09 12:12:52 +01:00
Ansgar Becker
2a0b9bd948 Issue #12: log "closed at.." message at the end of SQLite connections 2020-02-07 14:50:41 +01:00
Ansgar Becker
f10b9b0d9b Prefer KeyPressed() over GetKeyState(), which may help to fix the backspace crashes on Wine: https://www.heidisql.com/forum.php?t=34351 2020-02-07 12:16:00 +01:00
Ansgar Becker
2b443fb8fb Issue #7: Remove space from completion proposal's end-of-token characters, so space no longer overtakes the focused item. 2020-02-07 11:33:13 +01:00
Ansgar Becker
a153c7abf8 Sort completion proposal alphabetically, so we have tables, columns, functions etc. mixed. Closes #7 2020-02-07 11:15:07 +01:00
Ansgar Becker
35ceadb3fc Fix crash, caused by a previous commit for #793 2020-02-06 19:55:57 +01:00
Ansgar Becker
c6ee86e6dc Detect MySQL fulltext keys, and fix wrong USING <algorithm>. See https://www.heidisql.com/forum.php?t=35365 2020-02-06 16:55:36 +01:00
Ansgar Becker
56e541a478 Introduce read-only mode for grid editors. Closes #631 2020-02-06 12:29:35 +01:00
Ansgar Becker
568e1a6d8b Uncheck query profile checkbox when switching to a non-MySQL connection. Closes #793 2020-02-06 07:51:34 +01:00
Ansgar Becker
ec31a25e96 Minor performance fix 2020-02-05 17:35:24 +01:00
Ansgar Becker
0254345ff3 Prefer VirtualTree's OnNodeDblClick over OnDblClick, to detect whether the user really clicked on a session node, or somewhere else. Closes #820 2020-02-05 17:34:23 +01:00
Ansgar Becker
b333de2913 Update VirtualTrees component to v7.3, from https://github.com/Virtual-TreeView/Virtual-TreeView/milestone/13 2020-02-05 17:12:58 +01:00
Ansgar Becker
a0effa1c50 Detect non empty numeric scale for DOUBLE datatype, at least if numeric precision is already given. Closes #876 2020-02-05 16:42:41 +01:00
Ansgar Becker
e3ff6826ac Update libmariadb.dll, to hopefully fix #519 2020-02-04 19:21:12 +01:00
Ansgar Becker
33300bd171 Silence crash happening in some very early calls to apphelpers.FindNode, also triggered by RestoreTabs. Probably helps here: https://www.heidisql.com/forum.php?t=35551 2020-02-04 08:03:34 +01:00
Ansgar Becker
a16465795a Check connection object state before destroying remaining query results, and release library when closing a connection 2020-02-04 08:00:48 +01:00
Ansgar Becker
d5a2764f1c Issue #831: Update PostgreSQL libraries:
* add libpq.dll v10.0.11 32+64bit
* add libpq.dll v12.0.1 64bit
* add 2 new dependencies (each 32+64bit): libcrypto-1_1.dll and libssl-1_1.dll
* remove libpq.dll v9.5 32+64bit
* remove 2 no longer dependent files (each 32+64bit): libeay32.dll and ssleay32.dll
2020-02-03 20:57:32 +01:00
Ansgar Becker
4a440229a4 Use TDBObject.TableColumns for views as well, handle these like tables. Fixes crash when editing view data, when trying to create a table copy of a view, and some more. 2020-02-02 16:35:10 +01:00
Ansgar Becker
858e8a3b4a Detect column default value as text if it starts with a single quote. Applies to older MySQL versions without IS.columns. Closes #873 2020-02-02 16:03:39 +01:00
Ansgar Becker
0f38df3a1d Issue #784: set minimum dimensions of update-check dialog, and default screen positioning 2020-02-02 10:58:18 +01:00
Ansgar Becker
19391e0d3f Tweak update check dialog, closes #784
* make dialog resizable
* restore previous dialog size
* use fixed pitch font in build notes
2020-01-30 16:15:42 +01:00
Ansgar Becker
80542d1959 Prefer string helpers .ToLowerInvariant and .ToUpperInvariant over culture dependent .ToLower and .ToUpper. See https://stackoverflow.com/questions/6225808/string-tolower-and-string-tolowerinvariant . Closes #856 2020-01-30 12:28:06 +01:00
Ansgar Becker
5ee148bdbd Give CHAR data type a separate detection, besides VARCHAR, for SQLite. Closes #870 2020-01-29 21:24:23 +01:00
Ansgar Becker
ef2b310556 Issue #856: log more details of detected table key 2020-01-29 19:43:18 +01:00
Ansgar Becker
3e40486d01 Set link color to clHighlight, which better fits to both dark and light themes. Closes #755 2020-01-28 19:08:57 +01:00
Ansgar Becker
7ab47a3143 Detect foreign keys in MS SQL, and provide foreign values drop down in data grid. Closes #150 2020-01-26 22:23:12 +01:00
Ansgar Becker
c79be62bfb Enable cut/paste actions when any control is focused, except read-only SQL editors. Closes #592. 2020-01-25 20:04:56 +01:00
Ansgar Becker
67d547527b Rename "Save as" menu item more intuitively to "Duplicate / save as". Closes #865 2020-01-23 20:56:37 +01:00
Ansgar Becker
e81bfe4144 Bring back table keys on MS SQL. See https://www.heidisql.com/forum.php?t=35446 2020-01-23 20:48:05 +01:00
Ansgar Becker
3697a5b655 Issue #12: fix empty "ALTER code" tab on table editor for SQLite 2020-01-22 15:20:21 +01:00
Ansgar Becker
995749c5eb Fix TDBConnection.GetTableColumns to get the length/set of a column on MSSQL and PG. Closes #864 2020-01-22 15:19:07 +01:00
Ansgar Becker
103a61dc52 Issue #12: fix row count always -1 on SQLite, in "copy table" dialog 2020-01-22 13:04:39 +01:00
Ansgar Becker
feeb17e7d4 Performance: use first 1000 rows only for calculating the CSV export size, and interpolate the rest. Closes #804 2020-01-21 20:39:38 +01:00
Ansgar Becker
4497cb2d91 In SQL foreground and background color dropdown, set NoneColorColor to "clNone", to activate that "None" color. Also, include system colors in both dropdowns. Closes #840 2020-01-21 19:33:01 +01:00
Ansgar Becker
d170a7302b Mask SSH key passphrase in user prompt. Closes #863 2020-01-21 19:21:33 +01:00
Ansgar Becker
6f3911b3a3 Detect columns from PG table keys only in current schema, do not mix these with columns from an equally named table in a different schema. Closes #842 2020-01-21 19:13:12 +01:00
Ansgar Becker
638f093105 Add some debug log output to TMySQLConnection.GetTableKeys for debugging #856 2020-01-21 18:55:05 +01:00
Ansgar Becker
c76695c0d8 Fix always empty comment on PostgreSQL columns. Closes #859 2020-01-20 19:48:01 +01:00
Ansgar Becker
d5e5a8292d Issue #12: remove "database." part from reference table in foreign key code, as this throws an error: near ".": syntax error. Makes "Create table copy" dialog compatible to SQLite, except for indexes yet 2020-01-19 20:45:34 +01:00
Ansgar Becker
e770dcbd85 Prefer CREATE code from SHOW CREATE TABLE in MySQL again, which includes table options which are yet unsupported in the generic TDBConnection.GetCreateCode . 2020-01-19 13:48:14 +01:00
Ansgar Becker
05247dc9b8 Issue #12: clear internal cache when closing an SQLite connection 2020-01-19 13:26:49 +01:00
Ansgar Becker
8517ff2ec7 Finally, remove ParseTableStructure method, and use a text format of TTableColumn in the remaining caller "Paste columns" 2020-01-19 13:25:49 +01:00
Ansgar Becker
fdb5a61024 Issue #12: Support "find text on server" tool with compatible queries in SQLite 2020-01-19 08:04:36 +01:00
Ansgar Becker
3b84ccc696 Issue #12: SQLite allows any column type declaration, even custom types.
* support those declarations which are commonly used in other database systems, and for which Heidi has a fitting grid editor
* move UNIQUEIDENTIFIER from text group to binary group
* remove useless native type ids and empty descriptions
2020-01-19 07:26:00 +01:00
Ansgar Becker
c994e43e07 Issue #12: detect UNIQUEIDENTIFIER column type, and sort that into the text type group 2020-01-18 18:18:38 +01:00
Ansgar Becker
e6fd4e4d63 Add missing CHAR datatype to SQLite column detection. Closes #858 2020-01-18 08:19:33 +01:00