Commit Graph

5259 Commits

Author SHA1 Message Date
Ansgar Becker
4b39eeb153 Don't fool detection of unsafe queries by comments. Closes #685 2019-10-29 21:46:32 +01:00
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
e0f8a36bfe Restore previously used collation when creating new database. Closes #702 2019-10-27 11:59:23 +01:00
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
deab98736e Issue #140: Be sure to write tab backup files in UTF8 without BOM 2019-10-15 07:07:36 +02:00
Ansgar Becker
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
Ansgar Becker
1d94724095 Issue #704: detect pre-authentication banner messages as informational (not as error) in plink output 2019-10-13 14:48:07 +02:00
Ansgar Becker
22b634ab36 Issue #704: check result of "SHOW ssl" for whether SSL is really being used 2019-10-13 14:35:05 +02:00
Ansgar Becker
0fe7bb66cb Issue #704: escape backslashes in SSL certificate files for PostgreSQL connections 2019-10-11 07:53:28 +02:00
Ansgar Becker
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
Ansgar Becker
3e6b522ca5 Update libmariadb.dll and various plugins, add 2 new ones: client_ed25519 and auth_named_pipe. Probably solves #754 2019-10-08 19:05:27 +02:00
Ansgar Becker
0daecec22f Revert 355db1403a for #144, which makes the Tab key ineffective. Closes #765 2019-10-07 20:27:21 +02:00
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
d09e121cdd Issue #712: final solution for intuitive result tab captions and line/char panel 2019-09-29 12:34:38 +02:00
Ansgar Becker
0fc09be9e9 Issue #144: TMemo and friends select their text when pressing Enter, when they were manipulated by SHAutoComplete, so fix that by leaving TCustomMemo as they are 2019-09-28 16:44:34 +02:00
Ansgar Becker
1f22580489 Issue #719: For message dialog button captions, prefer localized strings from user32.dll over our translation from Transifex 2019-09-26 20:29:55 +02:00
Ansgar Becker
9b52648bfa Issue #144: Change default keystroke for "delete next word" (ecDeleteWord) from Ctrl+T reasonably to Ctrl+Del 2019-09-26 19:16:22 +02:00
Ansgar Becker
355db1403a Issue #144: Let grid editors call TExtForm.FixControls on their MainControl, to support Ctrl+Backspace there. 2019-09-25 20:39:54 +02:00
Ansgar Becker
d446db554a Issue #144: Move some code out of TExtForm.OnCreate into .DoShow, where it works for more instances of TEdit, e.g. the database and table filter. Also, let the object editors call this code, as they don't derive from TExtForm. 2019-09-25 20:14:52 +02:00
Ansgar Becker
68994a4e4d Issue #144: make Ctrl+Backspace delete the last word of TEdit and TButtonedEdit in any TExtForm 2019-09-25 17:40:03 +02:00
Ansgar Becker
67967b411f Issue #423: add DataTypeCompatibility=80 to connection string, hopefully healing these "multiple step" errors on MS SQL 2019-09-22 19:35:57 +02:00
Ansgar Becker
4a8e9296a2 Fix broken undo history after applying auto-uppercase. Closes #541. Also support auto-fixing case of known database objects. 2019-09-19 20:10:21 +02:00
Ansgar Becker
acf6d956ff Issue #712: insert Unicode arrow characters in query result tabs and status bar panel, and unify order of x + y 2019-09-17 20:22:48 +02:00
Ansgar Becker
0da8cb79f8 Issue #515: give ReadTextfileChunk a BufferPadding of 1 instead of 10M. With 10 attempts, we get a maximum of 10 Bytes which is more than enough to get a complete character in any multibyte encoding. See https://github.com/HeidiSQL/HeidiSQL/issues/515#issuecomment-527858110 2019-09-17 19:59:46 +02:00
Ansgar Becker
d114ef1adc Add menu item "Open URL" to grid context menu, enabled only if underlying field text is a HTTP URL. Closes #692 2019-09-16 20:37:19 +02:00
Ansgar Becker
a5c4498376 Issue #746: Call SetString with UTF8String instead of String, as advised on https://stackoverflow.com/q/57951463/4110077 . Hopefully nails the decoding issue. 2019-09-16 19:41:47 +02:00
Ansgar Becker
abc9ef16f9 Issue #746: prefer AnsiString over Byte data type for buffering http request result. 2019-09-15 19:08:40 +02:00
Ansgar Becker
56474eaa1b Get schema with the same name as user name in search path. See https://www.heidisql.com/forum.php?t=34558 2019-09-14 15:27:05 +02:00
Ansgar Becker
d6373f2c38 LogSQL: move MainFormCreated flag activation above first wanted debug messages, and include client's time zone offset in log panel 2019-09-13 17:57:11 +02:00
Ansgar Becker
acfc5bc175 Issue #746: log result of donor check in log panel, move http request from FormCreate to AfterFormCreate, and repaint image after show/hide 2019-09-13 17:52:44 +02:00
Ansgar Becker
65873c9a90 Issue #746: Reset http request timeout from 3s to 10s in donor check. Probably some requests take a bit longer on the new webserver. 2019-09-13 06:08:55 +02:00
Ansgar Becker
11f25e01f4 Issue #654: reduce very frequent calls to Application.ProcessMessages while import dialog shows, down from 1 call per command to 1 call per second 2019-09-08 09:41:26 +02:00
Ansgar Becker
7666496177 Prevent file read issues: THttpDownload.SendRequest() now stores the response in a string variable if the passed file name is empty. 2019-08-26 14:00:07 +02:00
Ansgar Becker
e8ba05a1c7 Trim linebreak from right side of detected procedure parameters. See https://www.heidisql.com/forum.php?t=34518 2019-08-26 07:34:14 +02:00
Ansgar Becker
b49a0d7379 Fix InnoSetup warning: Warning: Constant "pf" has been renamed. Use "commonpf" instead or consider using its "auto" form. 2019-08-20 21:23:41 +02:00
Ansgar Becker
05c4407b6a Fix non applied font name on some link labels 2019-08-20 21:11:06 +02:00