511 Commits

Author SHA1 Message Date
097a902e3c Support very low max_allowed_packet setting in TMySQLConnection.MaxAllowedPacket, so it has to be >10K only, for not assuming 1M for SQL exports. See https://www.heidisql.com/forum.php?t=35046 2019-12-01 11:13:51 +01:00
dd8bacfcc9 Turn simple message box into a prompt when SSH tunnel asks for key passphrase. Closes #284. 2019-11-30 18:05:36 +01:00
f37cfbddce Support modifying columns per table designer in PostgreSQL mode, including rename. Closes #595 2019-11-24 15:47:53 +01:00
5a55f340c6 Let TConnectionParameters.NetTypeName and TConnectionParameters.IsCompatibleToWin10S rely on a correctly set FNetType property. So we can safely use GetNetTypeGroup on it, and need less parameter passing. Closes #812. The default FNetType should probably not be ntMySQL_TCPIP any longer, so such bugs get seen earlier. 2019-11-22 20:00:22 +01:00
96aca7f6a2 Display last system error when plink process could not be started for some reason. Helps in debugging. See https://www.heidisql.com/forum.php?t=34556#p35000 2019-11-20 21:02:29 +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
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
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
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
17e75e70da Refactor: rename helper function sstr() to something more readable, and optimize it slightly 2019-11-04 20:15:41 +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
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
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
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
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
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
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
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
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
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
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
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
6839c827c4 Issue #704: Add basic SSL support for PostgreSQL connections. 2019-07-29 13:40:59 +02:00
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
82241e7a6f Trim SSH host name, and revert some recently accidentally committed debug lines 2019-07-28 12:23:34 +02:00
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
33f2bdf505 Tweak help message 2019-07-28 10:56:06 +02:00
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
852ac61347 Activate Library drop down for PostgreSQL connections as well, so we may provide multiple versions in the future. 2019-07-28 08:24:13 +02:00
4b84ffa7ef Issue #722: Tweak TMySQLConnection.GetLastErrorMsg so it shows an additional more helpful message what the user could do to solve his SSL connection error 2019-07-23 22:00:12 +02:00
db9e76bd78 Move code from TDBObjectEditor.GetDefiners to new TDBConnection.AllUserHostCombinations 2019-07-22 07:44:19 +02:00
2a91a13b42 Issue #677:
* drop workaround for application crash on WinXP, when loading newer libmariadb (see #79)
* raise TDbLib's own exception instead of baking an own one with less details. Probably helps in debugging: https://www.heidisql.com/forum.php?t=34044
* rename EDatabaseError to EDbError, to overcome naming conflict in DB unit
* load libpq.dll always with path, which should anyway work better than without it. See http://www.heidisql.com/forum.php?t=22514
2019-07-08 20:23:05 +02:00
e804db8fcc Issue #677: provide a new library combobox in MySQL mode, for selecting any of the libmysql/mariadb.dll files from the application directory 2019-07-05 06:44:10 +02:00
a9fd8be2f3 Fix new crash in ConnectionInfo (mouse over server version status panel) 2019-06-30 08:59:49 +02:00
92a34000e3 Escape double quotes in SSH password for plink command. Closes issue #261 2019-06-29 08:02:52 +02:00
f2ed7b01a1 Use UnescapeString() to remove more escape sequences than a duplicated single quote. Move ExtractLiteral() to TDBConnection, as UnescapeString() depends on the connection type. Closes #690. 2019-06-26 19:52:22 +02:00
a6ea858880 Use the same new dll loading mechanism also for PostgreSQL's libpq.dll 2019-06-22 17:57:46 +02:00
1d6a415f5f Refactor: rename mysql_structures unit neutrally to dbstructures 2019-06-22 14:26:41 +02:00
c844032197 Use mysql_optionsv to tell newer MySQL servers HeidiSQL's program_name, visible then in performance_schema.session_connect_attrs 2019-06-19 22:47:34 +02:00
59e3ba4b34 Fix duplicated application directory prepended on library path 2019-06-19 22:45:14 +02:00
a77eedde58 Experimental: introduce TDbLib and descendant TMySQLLib, and outsource dll loading mechanism there, out of DoBeforeConnect 2019-06-19 21:15:22 +02:00