Commit Graph

6139 Commits

Author SHA1 Message Date
Ansgar Becker
43aec429c2 Only MariaDB 10.2.27+ seems to support more expressions in column default value, and wraps string literals in single quotes. Use that to verify default value is not an expression. Fixes unquoted default values, described here: https://www.heidisql.com/forum.php?t=35746 2020-03-03 17:44:11 +01:00
Ansgar Becker
f6c7c0a6af Support dropping schema on PostgreSQL. Closes #76 2020-03-03 17:36:55 +01:00
Ansgar Becker
5e89f6227d Prioritize "auto_increment" in "extra" column of GetTableColumns in MySQL mode, over detection of NULL default. Closes #909 2020-03-03 14:39:07 +01:00
Ansgar Becker
abc9f7063e Make comparison of table in SQL code with physical table names case insensitive. Probably helps solving #895 2020-03-01 10:42:29 +01:00
Ansgar Becker
919be1d355 Revert non working modifications for auto completion. Closes #917 and reverts #914 2020-03-01 10:25:22 +01:00
Ansgar Becker
f1b72b75cd Fix ordinary loop bug with a value in MaxLen, used for the next loop. Closes #918
* prevent meaningless length of "0" for date/time columns
* make detection of length more exact to the relevant data types
2020-02-29 14:07:41 +01:00
zilzila
3cb40f4c16 Autocompletion fix for case-sensitive identifiers 2020-02-29 08:10:51 +01:00
zilzila
31ab977b22 Fix implicit use of quoted schema (database) 2020-02-29 08:10:51 +01:00
Ansgar Becker
74ea786201 Issue #895: remove wrong comment, and duplicated check for empty expression 2020-02-27 07:43:37 +01:00
zilzila
6c51de4d35 Added support for quoted identifiers and case-insensitive comparision for not quoted identifiers for autocompletion and list of tables in table clauses 2020-02-27 07:21:53 +01:00
Ansgar Becker
073b907d26 Enhance aliasing of edges on dark background in new logo 2020-02-26 07:51:56 +01:00
Ansgar Becker
a1e97b9ea2 Revamp main logo 2020-02-25 22:18:22 +01:00
Ansgar Becker
fdc1118c96 PostgreSQL libraries: give the user the hint to VC redistributable on any dll loading error. Not just when a procedure could not be assigned. If VC is missing, the user may get "The specified module was not found", just like when the main dll is missing. 2020-02-25 21:28:50 +01:00
Ansgar Becker
71ca19a154 Detect more column default values as NULL instead of "No default", on MySQL 5.7. See https://www.heidisql.com/forum.php?t=35678 2020-02-23 11:36:56 +01:00
Ansgar Becker
1e8ff83252 Overseen file change for previous commit, see https://www.heidisql.com/forum.php?t=35692#p35702 2020-02-23 11:11:46 +01:00
Ansgar Becker
bb86bf4944 Don't auto-fit width of columns in routine parameter tree. Just store and restore what the user has set. Closes #903. 2020-02-22 16:47:18 +01:00
Ansgar Becker
05d02627f3 Make TConnectionParameters.IsMySQL specific to MySQL only, and rename the grouped type checks to IsAnyMySQL, IsAnyMSSQL etc. This way the status bar now shows "MySQL", not "MySQL or MariaDB" 2020-02-22 09:06:37 +01:00
Ansgar Becker
e97b8ae7fe Issue #12: disable session options unsupported by SQLite 2020-02-22 08:40:33 +01:00
Ansgar Becker
d57437518a Fix state of checkboxes on the session manager's Advanced tab 2020-02-22 08:23:03 +01:00
Ansgar Becker
483f6a1077 Support disabling "Full table status" on PostgreSQL. See https://www.heidisql.com/forum.php?t=35681 2020-02-22 07:58:40 +01:00
Ansgar Becker
88c3560e6e Issue #140: As a complement to writing tab backups in UTF8 without BOM, now load them in this encoding, not in UTF8 with BOM
* see deab98736e
* see https://www.heidisql.com/forum.php?t=35551
2020-02-20 09:35:45 +01:00
Ansgar Becker
b128224bee Issue #7: revert a153c7abf8, so we have the old sorting of tables, functions etc. back in the completion proposal. See also https://www.heidisql.com/forum.php?t=35659 2020-02-20 06:34:58 +01:00
Ansgar Becker
c3c75fbb37 MSSQL: Remove surrounding parentheses from default value. Closes #721 2020-02-18 21:07:03 +01:00
Ansgar Becker
54757760f9 Use default library of given network type in command line receiver. See https://www.heidisql.com/forum.php?t=35656 2020-02-18 20:28:19 +01:00
Ansgar Becker
2626dd470a Make actCopyOrCutExecute safer against harmless crashes, and show occurring error messages in log panel 2020-02-16 12:48:28 +01:00
Ansgar Becker
20fdad7161 Issue #7: revert 2b443fb8fb, add space to end-of-token-characters again, as it's obviously inconvenient that the proposal stays open with no items in it after pressing space. Probably we find a better solution here. 2020-02-16 10:21:04 +01:00
Ansgar Becker
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
Ansgar Becker
efc143809b Fix detection of primary key in TDBConnection.GetKeyColumns. Closes #885 2020-02-15 12:32:45 +01:00
Ansgar Becker
a7f17b748e Fix no longer applied LEFT() on large text columns in data grid, for data types with a max length over 2147483647 2020-02-15 08:24:41 +01:00
Ansgar Becker
ee2a1e7648 Show Host, Last connect and Comment columns by default, in the session manager's tree 2020-02-15 07:52:37 +01:00
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