4105 Commits

Author SHA1 Message Date
a8bc1e3417 Add "Find text" item to context menu in data grid and query grids. Users may not be aware that find feature supports data grids, when it's only in the main menu. 2019-11-19 21:13:58 +01:00
ac8190fa1c Suppress errors in GetLockedTableCount, which is not working on all servers: https://www.heidisql.com/forum.php?t=34984 2019-11-19 06:45:20 +01:00
9b23baec85 On Amazon Redshift servers, display "Redshift PG x.y" in status bar. Closes #802 2019-11-17 17:15:42 +01:00
6695a31eae Issue #805: fall back to translated button captions if GetLocaleString returned an empty string. Setting an empty button caption raises an exception in TTaskDialogButtonItem 2019-11-14 21:32:15 +01:00
17f6cb851a Issue #88: remove definer clause also for views and events, if wanted 2019-11-13 14:40:16 +01:00
be689edaec SQL export: add drop down menu item for removing DEFINER clauses from triggers, procedures and functions 2019-11-13 14:29:26 +01:00
ed5a4ace88 Issue #88: consistently use DBObject.CreateCode also for trigger exporting 2019-11-13 12:56:32 +01:00
7b99bcc823 Issue #685: Fix fatal performance bug, calling GetSQL on each examined character of a TSQLSentence. See report on https://www.heidisql.com/forum.php?t=34935 2019-11-13 08:16:24 +01:00
586b34cd08 Issue #802: filter away not owned databases only on Redshift servers. See https://www.heidisql.com/forum.php?t=34635#p34946 2019-11-12 19:56:03 +01:00
bcd19c390e Issue #802: Detect Amazon Redshift via IsRedshift and give servers a fitting icon 2019-11-12 19:50:57 +01:00
fe7e402782 Issue #802: Redshift: modify query for retrieving accessible databases. See https://www.heidisql.com/forum.php?t=34635#p34937 2019-11-12 07:47:35 +01:00
66ebbca812 Always use an empty query tab for loading an sql file. Don't load contents into a currently non-empty tab. Closes #270. 2019-11-10 18:36:49 +01:00
7eb486ffb3 Alternative to pg_relation_size() for pre-8.1 PG servers. See https://www.heidisql.com/forum.php?t=34635 2019-11-07 07:39:12 +01:00
dac87729ca Never prepend "AND " in first quick filter. Closes #796 2019-11-07 06:59:09 +01:00
17e75e70da Refactor: rename helper function sstr() to something more readable, and optimize it slightly 2019-11-04 20:15:41 +01:00
ffebc6d52b Display help text for SQL function as tooltip hint in query helpers tree. 2019-11-04 20:05:08 +01:00
2b3b11c9c3 Update MySQL/MariaDB function list and their help texts 2019-11-03 13:45:24 +01:00
1f17ed80c3 Update code from vcl-styles-utils to current master branch from Oct 10 2019. Closes #649. Also related to background color of selected VirtualTree nodes, reported in #789 2019-11-01 15:56:42 +01:00
9c6769196d Apply DBtree's OnPaintText code to dialog for selecting user privilege object, so we get bold focused path there as well. Related to #785 2019-11-01 13:49:11 +01:00
91989233f5 Set bold text for database tree nodes in focused path. Related to #785 2019-11-01 13:42:49 +01:00
3b77da0c0c Centralize some code for checking validity of column number in current row of TDBQuery. Fixes a crash after canceling new row insertion, through ValidateControls(). Related to #788. 2019-11-01 12:41:05 +01:00
b2ecff5210 Fix crash when trying to add a new grid row while a first one was not yet saved. Closes #788 2019-11-01 12:37:10 +01:00
83e06020e4 Highlight same grid cell text also in current row, not only in current column. Closes #707 2019-10-30 08:01:51 +01:00
4b39eeb153 Don't fool detection of unsafe queries by comments. Closes #685 2019-10-29 21:46:32 +01:00
ffb6170a4e Fix definition of PostgreSQL Oid from Integer to Cardinal, as it is in postgres_ext.h . Should fix negative Oids in TPGQuery.TableName. See https://www.heidisql.com/forum.php?t=34819 2019-10-27 22:26:15 +01:00
b2b416d654 Activate toVariableNodeHeight option in query helpers tree, which triggers FixVT() to set HintMode to hmHint. This in turn displays full queries on query history nodes. Closes #693 2019-10-27 12:09:48 +01:00
e0f8a36bfe Restore previously used collation when creating new database. Closes #702 2019-10-27 11:59:23 +01:00
219b417910 After pressing save button on table editor, use the fresh DBObject from SHOW TABLE STATUS row, not the old one. This fresh one also has the new table comment. Closes #683 2019-10-27 11:46:51 +01:00
e2acb2122e Populate target database drop-down only with unchecked database nodes in object tree, to prevent overwrites. Closes #775 2019-10-27 08:38:26 +01:00
887b93177e Issue #777: Fix crash, happening in actToggleCommentExecute(), when commenting a line in the data tab filter 2019-10-23 14:20:40 +02:00
5601521555 popupDataGridPopup is also used in query tab result grids, so here's a check for which grid is active. Closes #776 2019-10-22 22:11:46 +02:00
46de6a29ac Issue #769: append ::text to JSON column names in PostgreSQL WHERE clauses. Fixes "Operator does not exist" errors 2019-10-20 16:47:21 +02:00
3f0db16f5b Performance: Search libraries on system once per app instance and net type group. Cache these in TConnectionParameters.FLibraries. OLE DB providers take some time to collect. 2019-10-20 09:47:37 +02:00
f874c80626 Issue #144: Prefer emptying selection in TCustomEdit's via EM_REPLACESEL message, which we can prepare to support undo. Unfortunately, not so in TComboBox, which does nothing then. 2019-10-19 16:59:45 +02:00
cf681035df Issue #144: New approach for supporting Ctrl+Backspace in edit + combobox controls, now in the ApplicationEvents.OnShortCut event 2019-10-19 14:07:00 +02:00
deab98736e Issue #140: Be sure to write tab backup files in UTF8 without BOM 2019-10-15 07:07:36 +02:00
10f61069c8 Issue #140: Prefer TStreamWriter over TFileStream, in SaveUnicodeFile(). Also, use its own Write() method instead of StreamWrite(), which encodes UTF8 first, so the new approach is probably faster. Probably also helps with non-writable tab backups on some systems. 2019-10-13 16:38:51 +02:00
1d94724095 Issue #704: detect pre-authentication banner messages as informational (not as error) in plink output 2019-10-13 14:48:07 +02:00
22b634ab36 Issue #704: check result of "SHOW ssl" for whether SSL is really being used 2019-10-13 14:35:05 +02:00
0fe7bb66cb Issue #704: escape backslashes in SSL certificate files for PostgreSQL connections 2019-10-11 07:53:28 +02:00
6c77fc7bc3 Remove the SHAutoComplete() call to revert the solution for #144 - this introduces too many new bugs. 2019-10-08 19:26:51 +02:00
0daecec22f Revert 355db1403aff5c7d061962f3ca21c62bcd8001f8 for #144, which makes the Tab key ineffective. Closes #765 2019-10-07 20:27:21 +02:00
375af4b372 Issue #762: add informational message when foreign key'd column has too many rows in the connected table, and raise limit from 1000 to 10000. 2019-10-05 14:09:08 +02:00
d191f1cfa0 To retrieve a column default value, prefer pg_attrdef.adbin column over pg_attrdef.adsrc. PostgreSQL 12 does not have adsrc. Closes #763 2019-10-05 12:08:40 +02:00
64c43aebbf Issue #62: distinct between TIMEZONE (without time zone) and TIMEZONETZ (with time zone). And modify GetDatatypeByName() so it deletes the longest detected datatype string PostgreSQLDatatypes.Names . This solves empty/undetected column comments in ParseTableStructure(). See https://www.heidisql.com/forum.php?t=23211#p34709 2019-10-05 08:04:31 +02:00
56c6a1e78e Fix glitch in previous commit for #62: never escape \, and don't overwrite text with escaped joker chars. So we just escape %, _ and ' now in Postgres mode. 2019-10-03 12:19:34 +02:00
3bcfbfd593 Remove "E" prefix from escaped strings, which caused an empty result in ExtractLiteral(). Instead, let EscapeString() escape just \, % and _ with backslash, and ' by a second '. Closes #62 2019-10-03 12:09:51 +02:00
fd03a11bdf Check if (old) grid result is in a valid state before checking for an url. Closes #759 2019-10-01 19:35:58 +02:00
f88e521ed0 Issue #541: apply KeyPress event to all other writable SQL editors, so the auto-uppercase feature is available everywhere 2019-09-30 20:44:09 +02:00
d09e121cdd Issue #712: final solution for intuitive result tab captions and line/char panel 2019-09-29 12:34:38 +02:00