4160 Commits

Author SHA1 Message Date
1344c10bb8 Issue #12: Implement TPgConnection.GetTableKeys, and now call GetTableColumns and GetTableKeys from GetCreateCode. TMySQLConnection should also use that, at least for tables. 2020-01-10 08:11:46 +01:00
3aa0777cda Issue #12: Get column comments in MSSQL back. See http://www.heidisql.com/forum.php?t=19576 2020-01-09 21:27:09 +01:00
c6b4e3e7c4 Issue #12: restore compatibility to MySQL pre-5.0 servers, which have no IS.columns table 2020-01-09 20:50:35 +01:00
16b81ab0f6 Issue #12: restore compatibility to MySQL pre-5.5 servers, which have no "Index_comment" column in IS.columns 2020-01-09 20:19:58 +01:00
b45a0d57c7 Issue #12: Implement TDBConnection.GetTableColumns and .GetTableKeys (todo: .GetTableForeignKeys), as a replacement for the error prone ParseTableStructure. SQLite columns and keys should be parsed correctly now, MS SQL and PostgreSQL may now have some glitches to fix. 2020-01-08 15:28:36 +01:00
0d0c6df599 Restore previous logic: Allow empty result in TableName(Column), which is the case for data tab TEXT columns with LEFT(..) clause. Other columns may have a table name in that case. Closes #837 2020-01-03 18:45:48 +01:00
7c1b0c4f03 Do not set DataTypeCompatibility=80 in ADO connection string with old SQLOLEDB driver. Probably solves some connection issues, see https://www.heidisql.com/forum.php?t=35208 2020-01-03 16:32:03 +01:00
c9d3d3c38d Issue #12: Proper implementation of TSQLiteQuery.ColIsPrimaryKeyPart() 2020-01-01 19:12:10 +01:00
7fc55c5da7 Overload TDBQuery.TableName with TableName(Column), for future usage in ColIsPrimaryKeyPart and friends 2020-01-01 18:51:10 +01:00
b869181f74 Issue #12: Call sqlite3_total_changes() after at least one call to sqlite3_step(), otherwise SQLite does not seem to execute a non-result query. Should make updates in data and query grid working now. 2020-01-01 17:40:08 +01:00
cc8203043a Add two newer header constants for MySQL/SSL, yet unused by HeidiSQL 2020-01-01 11:59:37 +01:00
5146026ba6 Issue #12: Detect more granular data types on SQLite, which we need for the table designer and other things 2020-01-01 11:56:43 +01:00
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
416252dbfd Issue #12: Simplify code in Tconnform.ValidateControls 2020-01-01 11:42:23 +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
c74a210586 Issue #12: Provide file pick icon in SQLite database file edit box. Database file is created by sqlite3_open() silently if it does not yet exist. Show a confirmation message in such cases. 2019-12-27 17:53:56 +01:00
021d78d135 Session manager: populate library dropdown when user selects a different net type 2019-12-27 17:19:39 +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
5a350967c7 Revert a part of commit:7ed97b3fe2f989b19bd282ae00c64de8e7b4871d which should have fixed a resizing bug on the query helpers box. See https://www.heidisql.com/forum.php?t=35096 2019-12-19 21:25:16 +01:00
168e49af84 Use the newer KNOWNFOLDERID TGUID constants from Winapi.KnownFolders instead of CSLID integer constants. Probably fixes wrong FOLDERID_RoamingAppData folder for #815 2019-12-18 21:36:51 +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
fc86cd4205 Add filter edit box on session manager, for filtering sessions using regular expressions. Closes #826 2019-12-15 22:12:15 +01:00
74068d68ad Place icons on the 3 new/save/delete buttons on the session manager, to make them more noticeable 2019-12-15 19:31:09 +01:00
feeb1106a7 Don't mix up SynHighlighterSQL.TtkTokenKind enum types with System.TTypeKind 2019-12-15 12:02:22 +01:00
8eba64ca5d Revert commit:424b9f9ab4c620dd6945d69e9652ee828b0b26eb for #159 (migration of files from pre-10.0 snippets directory) 2019-12-15 11:56:43 +01:00
eb25bc524e Close query tab on click with middle-mouse-button. Closes #779 2019-12-15 11:50:37 +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
14f2a2388a Issue #703: Sort collation drop down on "Bulk table editor" alphabetically 2019-12-12 21:12:00 +01:00
7e256647af Apply just modified session color to opened connection(s) after save. Closes #745 2019-12-11 22:03:02 +01:00
a40fd226c1 Trim text in TEdit's on session manager dialog, to prevent leading and trailing spaces after pasting. Closes #797 2019-12-11 21:46:45 +01:00
ef50035e33 Table editor: support moving down or up more than one column. See https://www.heidisql.com/forum.php?t=17765 2019-12-10 21:08:18 +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
805c0c35b2 Add checkbox option to remove line breaks from field contents in grid export dialog. Closes #474 2019-12-08 11:59:15 +01:00
2f2eba6e56 Disable some controls on VIEW editor, which the underlying server does not support, and don't generate SQL clauses for these. Closes #39. 2019-12-03 20:47:24 +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
023f6a342c Store and restore bind parameters per query tab in tabs.ini, including activation state. Closes #689 2019-11-30 13:55:01 +01:00
91216336e8 Do not trigger file reload prompt after file access. See https://www.heidisql.com/forum.php?t=15500 2019-11-29 22:00:34 +01:00
94b398beb2 Add CURRENT_TIMESTAMP to function list, especially for the dropdown in the default editor. See https://github.com/HeidiSQL/HeidiSQL/issues/74#issuecomment-559321533 2019-11-28 06:38:01 +01:00
54e05e5d23 Use up to 70 characters on a main tab caption before adding ellipsis. Gives long table names more room. 2019-11-26 21:12:26 +01:00