Ansgar Becker
1a7cc67e37
Simplify more code using the new PopupComponent() function
2021-01-16 18:36:01 +01:00
Ansgar Becker
b6c9cc1e02
Simplify some code which checks where user has clicked, using the new PopupComponent()
2021-01-16 18:15:12 +01:00
Ansgar Becker
e7baba4776
Issue #75 : pimp up context menu for indexes tab, and assign to foreign keys tab and check constraints tab as well
2021-01-16 17:19:35 +01:00
Ansgar Becker
461c7343f8
Issue #75 : get "Add constraint" and "Delete constraint" buttons working, provide function list when editing check clause, and fix some more issues
2021-01-16 16:29:44 +01:00
Ansgar Becker
8afca5dbe4
Issue #75 :
...
* detect table names in IS dynamically, on PostgreSQL and MySQL/MariaDB. This prevents me from using too complex version conditionals for detecting whether CHECK_CONSTRAINTS table is there
* even if CHECK_CONSTRAINTS table is there, the detection might fail due to the missing column TABLE_NAME, on MySQL, MSSQL and PostgreSQL. Catch SQL errors in that query and disable further detection of check constraints.
2021-01-14 21:09:08 +01:00
Ansgar Becker
6b6005267e
Issue #75 : CHECK_CONSTRAINTS is there on MSSQL, but does not work due to missing TABLE_NAME column: https://www.heidisql.com/forum.php?t=37462
2021-01-14 07:56:56 +01:00
Ansgar Becker
958d62c9b1
Issue #75 : create editable list for check constraints in table editor
2021-01-12 21:41:20 +01:00
Ansgar Becker
8f294e8990
Add menu items for inserting lowercase GUID's into grid cell. Closes #1268
2021-01-08 16:49:02 +01:00
Ansgar Becker
fdd73b1ffb
Fix crash in SynMemoQueryStatusChange when resizing main window with no active query tab
2021-01-08 11:00:17 +01:00
Ansgar Becker
3b381b642a
Update gnugettext unit to rev 134 from http://svn.code.sf.net/p/dxgettext/code/trunk/dxgettext/sample/gnugettext.pas
2021-01-07 17:44:47 +01:00
Ansgar Becker
8c5c56808c
Update sqlite3 libraries from v3.30.1 to v3.34.0 from Dec 01 2020
2021-01-05 17:40:46 +01:00
Ansgar Becker
2028db3df8
Outsource a local function into TDBObject.SchemaClauseIS, and use it in GetTableColumns
2021-01-04 19:27:04 +01:00
Ansgar Becker
6fd54fb9d4
Display number of indexes and foreign keys in caption of their tabs within the table editor. Helpful for knowing the number without having to activate their tab.
2021-01-04 16:44:50 +01:00
Ansgar Becker
34db4c7abd
Rename TTableColumn.Expression field to the more unique and clear .GenerationExpression, also for distinction from the upcoming CHECK expression.
2021-01-03 15:05:23 +01:00
Ansgar Becker
ea944b85fe
Fix scope for FStatus symbol of TTableColumn
2021-01-03 14:57:08 +01:00
Ansgar Becker
8f191e588b
Fix access violation in WalkNode.Parent in 32 bit mode. Not sure why but that happens after 67e3dc0a51 . Closes #1270
2021-01-01 14:08:33 +01:00
Ansgar Becker
11ef02105e
Issue #477 : Translate controls on CSV layout detector
2020-12-29 22:20:21 +01:00
Ansgar Becker
44c4543dfd
Activate AutoSize and disable WordWrap on the replace hint in the search/replace dialog, so the height is auto-adjusted (especially with chars like g), and the words are not tried to be wrapped into a hidden second line.
2020-12-29 22:17:54 +01:00
Ansgar Becker
15b0242070
Fix crash in SetupSynEditors after CSV layout detector was opened and closed once.
2020-12-29 22:08:20 +01:00
Ansgar Becker
d076c1958c
Widen status bar panels for big screens
2020-12-28 17:35:17 +01:00
Ansgar Becker
82488373b0
Fix non working inheritance of font for completion proposal in trigger editor
2020-12-28 17:33:38 +01:00
Ansgar Becker
54166561d8
Apply data type colors to column names in completion proposal, and move formatting code to new apphelpers.SynCompletionProposalPrettyText()
2020-12-28 13:18:26 +01:00
Ansgar Becker
90739a895b
Rename two forms so these comply to my own code convention: TDataSortingForm=>TfrmDataSorting and TColumnSelectionForm=>TfrmColumnSelection
2020-12-27 12:56:37 +01:00
Ansgar Becker
e66121a1c3
Warn the user about potential data loss when loading a (sql) file with encoding set to "auto-detect". That auto-detection has caused several data loss situations already.
2020-12-26 09:02:18 +01:00
Ansgar Becker
77ee00e5e8
Call SynUnicode.GetEncoding instead of our own old copied code in apphelpers.DetectEncoding. Probably enhances the "auto-detect encoding" option in file-open dialogs.
2020-12-26 08:58:45 +01:00
Ansgar Becker
f8195ac37c
Code cleanup: rename options unit to preferences. And follow a naming convention for the form name, which I already have in some of the other forms: TfrmPreferences
2020-12-22 17:24:01 +01:00
Ansgar Becker
e180f6ce6f
Issue #744 : Suspend action list on mainform while preferences dialog is open, so changes on the Shortcuts tab do not trigger some action, probably even with a crash
2020-12-22 08:46:18 +01:00
Ansgar Becker
172c9aeec8
Issue #744 : Shortcut settings: Let user know whether a wanted shortcut is assigned to another action, and prompt for confirmation in such cases.
2020-12-21 21:12:04 +01:00
Ansgar Becker
9c45f973d8
Update bundled plink.exe to v0.74 from https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html . closes #1218
2020-12-19 10:36:45 +01:00
Ansgar Becker
12d8418856
Move upper controls on view editor into a first tab of a new page control, and show CREATE code on a second tab. Closes #1135
2020-12-19 10:26:04 +01:00
Ansgar Becker
0c6b609cf2
Add support for JSONB column types in PostgreSQL. Closes #606
2020-12-19 08:59:27 +01:00
Ansgar Becker
8ab0fa1fa0
Auto-create directory path specified in SQL export target filename. Closes #1086
2020-12-19 08:48:33 +01:00
Ansgar Becker
1d0a224fa6
Issue #1241 : Remove theme selection from installer
2020-12-18 09:22:38 +01:00
Ansgar Becker
8e9d4dd4a1
Catch file creation errors in TQueryTab.SaveContents, when an opened file was removed with its directory, from outside. And auto-create missing folder when user presses Ctrl+S then. Also, if tabs.ini has a tab entry with a no longer existing file, don't watch that non-existent file for changes, which fixes RestoreTabs showing an error on startup.
2020-12-18 08:28:40 +01:00
Ansgar Becker
148b04e2d4
Try to prevent inner exception at the end of TMySQLQuery.Col. Hopefully reveals a more meaningful error message for issue #904
2020-12-17 12:46:26 +01:00
Ansgar Becker
ca2433b0cd
Enable cancel button after setting grid cell to NULL. Closes #1146
2020-12-17 12:20:04 +01:00
Ansgar Becker
281a53b88a
Limit rows per exported INSERT to 1000 for MSSQL. Introduced MaxRowsPerInsert property per connection type. 10000 for all other types. Closes #1189
2020-12-17 11:43:29 +01:00
Ansgar Becker
5e675a51d8
Code cleanup: move some node index constants to TQueryTab, and probably prevent AV in treeQueryHelpersInitChildren
2020-12-16 18:15:52 +01:00
Ansgar Becker
57cc332b1e
Support binary values in "More values" quick filter menu
2020-12-16 17:24:30 +01:00
Ansgar Becker
1aa8605d21
Support regproc and regprocedure types on PostgreSQL, so these don't use SUBSTR() in data grid
2020-12-15 17:57:50 +01:00
Ansgar Becker
1da0ad2092
Prefer SUBSTR() over LEFT() function in PostgreSQL data grid. Closes #1259
2020-12-15 17:56:41 +01:00
Ansgar Becker
990c630341
Get rid of hardcoded string default date 2000-01-01 in various places. Introduce apphelpers.DateTimeNever field instead.
2020-12-15 07:36:16 +01:00
Ansgar Becker
1f82efa02c
Fix sporadic crash in Tconnform.TimerStatisticsTimer due to empty session path
2020-12-15 07:21:15 +01:00
Ansgar Becker
1733156502
Fix sporadic EInvalidOp crash when displaying invalid uptime from server's ConnectionInfo
2020-12-14 22:26:56 +01:00
Ansgar Becker
a9039e08f1
Fix crash when table has an invalid/negative create or update date/time
2020-12-14 22:16:49 +01:00
Ansgar Becker
cb85ad596d
Silence crash in TMainForm.AnyGridGetText, when trying to calculate Unix timestamp from an too large or too low number
2020-12-14 19:56:55 +01:00
Ansgar Becker
85dcfc7108
Fix crash in TMainForm.treeQueryHelpersGetText
2020-12-14 19:39:27 +01:00
Ansgar Becker
f95fa2759a
Attempt to fix out-of-range error in TMainForm.tabsetQueryMouseMove
2020-12-14 18:24:30 +01:00
Ansgar Becker
8f826e814d
Attempt to fix a crash in TMainForm.DBtreeInitNode, probably accessing ParentNode when it's nil
2020-12-14 17:28:13 +01:00
Ansgar Becker
6475b1e098
Update VCL Styles Utils code, and dependent Delphi Detours Library
2020-12-14 17:26:44 +01:00