Commit Graph

6139 Commits

Author SHA1 Message Date
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
Ansgar Becker
0bffd5dadd Make installer script ready for Inno Setup 6 2019-08-20 20:33:54 +02:00
Ansgar Becker
1130ee41a3 Leave explain links disabled when SQL in focused process is empty, and only prepend a "USE dbname" if used database is not empty. Closes #738 2019-08-16 07:13:41 +02:00
Ansgar Becker
8f1fb1cfb0 Fix duplicated parentheses on host sub tabs, broken by previous commit. Closes #739 2019-08-16 06:42:44 +02:00
Ansgar Becker
10c450bfc7 Remove FHostTabCaptions list which had untranslated captions since recently. Use a regular expression instead. Closes #730. 2019-08-15 07:48:55 +02:00
Ansgar Becker
a513e77553 Issue #513: remove minimize and maximize buttons from theme preview dialog 2019-08-13 09:30:30 +02:00
Ansgar Becker
f4d2488998 Try to fix missing schema in row counting query. See https://www.heidisql.com/forum.php?t=34331#p34439 and https://www.heidisql.com/uploads/34439-2-bugreport.txt 2019-08-13 09:12:05 +02:00
Ansgar Becker
ea4fd3a2ba Catch more sorts of exceptions in TMainForm.AnyGridGetText when converting large integers to unix timestamps. Should fix #735 2019-08-13 08:50:05 +02:00
Ansgar Becker
d07d463fc1 Return default net group in TConnectionParameters.GetNetTypeGroup. Raising an exception lets the app die for some reason. Reproduction: click drop-down button on "Database(s)" session setting 2019-08-11 14:18:10 +02:00
Ansgar Becker
f4443066a8 Expect COMMENT 'xxx' clause in index creation code, and store that comment in a new TTableKey.Comment field. Not yet visible per GUI, but at least such indexes are displayed now. Closes #732 2019-08-11 09:45:06 +02:00
Ansgar Becker
9d732a0037 Restore compatibility to SQL Server 2000, when opening a table. See https://www.heidisql.com/forum.php?t=34331 2019-08-09 15:04:45 +02:00
Ansgar Becker
d56784c37a Move MySQL/MariaDB constants from const.inc to dbstructures.pas 2019-08-02 08:50:27 +02:00
Ansgar Becker
6839c827c4 Issue #704: Add basic SSL support for PostgreSQL connections. 2019-07-29 13:40:59 +02:00
Ansgar Becker
b2a3551704 Replace remaining SHOW VARIABLES queries with GetSessionVariable 2019-07-29 12:41:55 +02:00
Ansgar Becker
35e9d88f43 Issue #80: Safely accept empty default value for probably non existing server variable "skip_name_resolve" in user manager. 2019-07-29 08:30:48 +02:00
Ansgar Becker
7b8d6bc535 Introduce TDBConnection.GetSessionVariable, to retrieve the value of one specific variable. Use that to simplify the code in some places. 2019-07-29 08:18:56 +02:00
Ansgar Becker
82241e7a6f Trim SSH host name, and revert some recently accidentally committed debug lines 2019-07-28 12:23:34 +02:00
Ansgar Becker
74961f4c3d Use Library setting for MS SQL as well, and provide available ADO providers in the drop down. Also show a security warning dialog when there is just the old SQLOLEDB provider. Related to #237 2019-07-28 12:18:43 +02:00
Ansgar Becker
33f2bdf505 Tweak help message 2019-07-28 10:56:06 +02:00
Ansgar Becker
247a84b11e Make download hint translatable 2019-07-28 08:59:17 +02:00
Ansgar Becker
7fd551bd72 Give the user a hint to download VC redistributable if PostgreSQL dll fails to assign a procedure. See https://www.heidisql.com/forum.php?t=18580#p34297 2019-07-28 08:57:51 +02:00