527 Commits

Author SHA1 Message Date
01b37b6473 Issue #12: Fix TDBConnection.ApplyLimitClause for SQLite, which does not support a LIMIT clause in UPDATE/DELETE statements 2020-01-01 11:53:52 +01:00
52692367b6 Issue #12: Get TDBConnection.GetSessionVariables running for SQLite, with an empty list of variables for now 2020-01-01 11:52:36 +01:00
d91da37bd1 Issue #12: Implement TSQLiteConnection.GetCreateCode, and support square brackets for identifier quoting 2020-01-01 11:50:54 +01:00
687d1d82a6 Move TDBConnection.FRegClasses one down in class hierarchy, where it belongs 2020-01-01 11:44:48 +01:00
616715987e Issue #12: Support query batch fired in one go, and get multiple results per query running. Using pzTail out parameter of sqlite_prepare_v3(), not sqllite_next_stmt(), which returns statements from previously fired queries. 2019-12-29 09:52:11 +01:00
186e4b2eb3 Make TDBConnection.GetLastResults generic for all network types, and only override it for MSSQL with a manual query-separator, so we have less code 2019-12-28 09:35:11 +01:00
541d4e2e90 Issue #12: Clean up code, attempt to get multiple SQLite results per query working, move FStatementNum from TDBConnection to the only caller TMySQLConnection 2019-12-28 09:29:29 +01:00
ca0ee76156 Introduce function TDBConnection.ResultCount and use that instead of syncing FResultCount variable in many places 2019-12-27 09:05:50 +01:00
4c62279ba6 Issue #12: Get real/origin names of columns in a SQLite result into FColumnOrgNames list, and remove Columns list from TGridRows now that we can use the statement pointer later 2019-12-27 08:53:19 +01:00
efb4459288 Issue #12: Implement TSQLiteQuery.TableName, and
* free Psqlite3_stmt later, in TSQLiteGridRows.Destroy, not in TSQLiteConnection.Query directly after execution
* move code from TAdoDBQuery.TableName to TDBQuery.TableName, as this is generic SQL parsing which works for all layers (though not so reliable)
2019-12-27 08:30:25 +01:00
91f973caed Issue #12: On "Host" tab, prefer visible filename over visible file path 2019-12-25 12:58:36 +01:00
ed89b54b28 Issue #12:
* define and use SQLite column datatypes, at least the few groups (int, text, real, blob, date)
* TSQLiteConnection.GetThreadId now returns the application process id, as there is no connection pid in SQLite
2019-12-25 12:34:36 +01:00
e67ab11279 Introduce experimental implementation of SQLite support, alias "Jingle Bells v2", for issue #12 2019-12-24 14:32:19 +01:00
3d1468e77a Make TDBObject.IsSameAs more crash stable, in case the second object is nil. See https://www.heidisql.com/forum.php?t=35109 2019-12-16 08:11:56 +01:00
d5968e1efe Issue #703: Sort charset drop down on "Bulk table editor" alphabetically, and increase height of drop down scrollbox to 16 items 2019-12-14 15:17:22 +01:00
9d6a16ec6c Break Plink wait loop when server has sent an "Access denied" error. Closes #774. 2019-12-08 12:28:33 +01:00
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