5890aad90f
Do not pass <Enter> key to parent grid, if radio button or checkbox on default editor is currently focused. Fixes issue #1605 .
2010-01-17 13:31:49 +00:00
0d8653db6a
Override VirtualTree's incremental search event, make it case insensitive, and apply that event in FixVT to various lists and grids, which have IncrementalSearch enabled. Fixes issue #1605 .
2010-01-17 10:50:47 +00:00
8ba9fb7b77
Allow space bar to modify checkbox columns "Allow NULL" and "Unsigned". Fixes issue #1605
2010-01-17 10:20:08 +00:00
5c29403c7b
Auto-fix user selected, non working default value/type when data type has changed. Fixes issue #1411 .
2010-01-17 07:43:14 +00:00
ec1da49440
"Duplicate row" feature:
...
* Don't flag empty/non-NULL cells as modified.
* Ensure the right row data is referenced, some operations seems to work on a copy of records, some on the original one.
2010-01-16 21:30:30 +00:00
c2857f438a
"Duplicate row" feature:
...
* Copy NULL flag from source row, not just the text "(NULL)". Fixes issue #1607
* Do not overtake values from an auto increment column. Fixes issue #1608
2010-01-16 17:46:11 +00:00
8b9c7da6fb
Do not hide focus rectangle in trees and grids. Can be useful to see which control has focus.
2010-01-16 15:58:47 +00:00
2e00bdf37d
Add SOME keyword to keyword highlighter. Fixes issue #1606
2010-01-16 14:42:18 +00:00
a3e5682316
Ignore stored ORDER columns for removed or renamed columns. Fixes issue #1594 .
2010-01-16 08:26:42 +00:00
4847e55bf0
Enhance query tabs:
...
* Code cosmetic: use generics to avoid type casting on QueryTabs items
* Warn when trying to save a query via "Save as" to a filename which is already open in another tab. Fixes issue #1591 .
* If the above warning is ignored and file gets saved, flag all other tabs with same filename as modified and display the asterisk on the tab
* Also flag as modified in "Save" action, without the warning popup.
2010-01-16 07:46:22 +00:00
43d98ec1be
Ensure full width of key column values in base SQL of data grid. Also, do not blow SELECT query with LEFT() unless the column has a larger length than 256. Fixes issue #1602 .
2010-01-15 21:20:42 +00:00
9080ad7607
No need to use the Wide* version of string functions any longer.
2010-01-15 20:28:48 +00:00
492f7d04eb
Fix injection of database name for direct SQL export to database. Also, do not surround procedure+function creation with DELIMITERs when exporting to database or server. See http://www.heidisql.com/forum.php?t=4803
2010-01-15 19:44:44 +00:00
d70ea85786
Ask user if in-memory modifications to table, view, trigger or routine should get saved, this time including a Cancel button, which cancels either
...
* focusing a different object in database tree and/or
* closing application
TODO: Internal switching to different connection probably needs that too?
2010-01-15 17:13:24 +00:00
52ea8f410a
Use Unicode enabled TStringList instead of TWideStringList in all places. Should have no visible effect, apart from a very minor performance optimization, as String reference pointers are handled by Delphi, WideString by Windows.
2010-01-14 19:41:58 +00:00
1731e61570
Convert remaining WideString constant to String
2010-01-14 18:25:32 +00:00
307bb8ca65
Fix sporadic AV which seems to follow after a reconnect with no db selected.
2010-01-14 18:23:17 +00:00
fcb62acc07
Enhance too bright NULL colors for grids. Fixes issue #1584 .
2010-01-13 22:44:00 +00:00
24b675cb25
Tweak message in status bar "db: xyz object(s)", add count for all different object types. Fixes issue #1596 .
2010-01-13 20:43:25 +00:00
473716c8b9
Refill data grid when pressing "Clear filter". Seems reasonable not only to clear the filter editor. Fixes issue #1598 .
2010-01-13 19:50:44 +00:00
b09e8a6816
Extend list of known MySQL keywords with those in http://dev.mysql.com/doc/refman/5.5/en/reserved-words.html , but not in our own list. Fixes issue #1600 .
2010-01-13 19:45:53 +00:00
81c13edbf0
Wording: use "object" instead of "table". Related to issue #1596 .
2010-01-13 06:56:50 +00:00
9b8fb4cc1f
Fix critical character in SQL on old servers which can be converted using the local codepage. Fixes issue #1569 .
2010-01-12 22:17:54 +00:00
7aaa5af2c2
Avoid accessing non existent dropdown item. Fixes issue #1597 .
2010-01-12 18:36:29 +00:00
aad22b923c
Fix incorrect base SQL for large SQL dumps which need more than 100MB loop. Reported via forum: http://www.heidisql.com/forum.php?t=4769
2010-01-12 06:33:02 +00:00
df6397abc7
Fix detection of VARCHAR columns as BLOBs on 4.0 servers. Workaround for shared type FIELD_TYPE_* constants should only apply to (TINY|MEDIUM|LONG)TEXT columns. Fixes issue #1588 .
2010-01-11 22:24:25 +00:00
8abd2d0d76
Keep "Save" action enabled even if current query tab has no filename, so "Save" executes the "Save as" in such cases. Fixes issue #1590 .
2010-01-11 21:58:19 +00:00
ef3501e9c1
Exit to avoid AV when query tab was closed and contents were saved. Fixes issue #1593 .
2010-01-11 06:48:56 +00:00
4d47af1e9e
Code cosmetic:
...
* Sanitize main unit from unused variables
* Move global variables to public scope
* Bring public vars into some reasonable order
* Move constants to const.inc, unless dependent from some used VCL unit
2010-01-10 17:11:42 +00:00
1a4db545c5
Refactor layout and code of about dialog.
2010-01-10 16:22:53 +00:00
43b010d227
Inject SVN revision into executable's version infos last segment (4.0.0.[r]). Don't modify main.pas any longer, just version.rc by a new console app.
2010-01-10 13:53:52 +00:00
85bf9b1602
Remove non existent properties of SynMemoCompletionProposal. Fixes issue #1582
2010-01-08 13:48:27 +00:00
25ac096554
Make more use of Generics, this time for columns, keys and foreigne keys lists, used by main unit and table editor. Frees code from annoying casting and makes it more type safe.
2010-01-08 00:30:51 +00:00
35aa9c4dbf
Make use of "Generics" provided by Delphi, to hold the list of tables, views etc. Easy to use and removes silly, redundant code.
2010-01-07 23:46:30 +00:00
fd516f8b0c
Avoid trying to set focus on a disabled TEdit. Fixes issue #1574
2010-01-07 23:21:49 +00:00
c2883e0f3d
Don't display quotes around default values for numeric columns, so it's more clear what the server will insert by default.
2010-01-07 23:04:55 +00:00
3610f0a73b
Decide to return String instead of AnsiString in BinColAsHex(), to satisfy all callers without additional casting. Fixes some compiler warnings.
2010-01-07 22:57:43 +00:00
f65e5bbc68
Don't double check if a column is binary, just trust in the caller doing the right thing. Fixes cut binary values in data grid. Additionally, return hex code right away, so we don't convert the hex value to UnicodeString and back to AnsiString. Consistently rename ColAsAnsi() to BinColAsHex().
2010-01-07 21:52:35 +00:00
936ed6a67b
Support TIFF images in "Image view" action. Requested via forum: http://www.heidisql.com/forum.php?t=4623
2010-01-07 18:36:40 +00:00
f690de4405
Fix half read binary files in "Insert files" dialog, now that SizeOf(Char) returns 2 instead of 1.
2010-01-07 18:35:37 +00:00
49b06f41b7
Safety check if PMYSQL handle is assigned in Ping() method. Tries to fix a sporadic access violation, unreproducible here but reported here: http://www.heidisql.com/forum.php?t=4694
2010-01-07 07:02:18 +00:00
a4652d39a4
* Fix compiler warnings due to implicit AnsiString to (Unicode)String or vice versa
...
* Remove workaround for Unicode text to and from clipboard
* Fix writing/reading wrong encoded text into/from registry - no need to use Utf8Encode() any longer
* Implement TMySQLQuery.ColAsAnsi() for cases in which we read binary data.
2010-01-07 00:00:56 +00:00
0106ee3b4f
Fix broken UTF8 export files
2010-01-06 00:50:17 +00:00
882a2b9995
Old unicode unit no longer compiles here. Anyway, the new Utf8ToWideString() seems to solve what issue #1328 says in the same way.
2010-01-06 00:24:09 +00:00
7d401ffde8
Upgrade to Delphi 2010:
...
* Removes TNT Unicode controls, which are no longer required. All VCL controls now have native Unicode support.
* Remove Delphi 11 packages, otherwise we would either need to keep TNT or break Unicode
* PngComponents update from Uwe Raabe on http://cc.embarcadero.com/Item/26127
* Adjust auto build process
* Since Delphi 2009, Strings are now UnicodeStrings, not AnsiStrings any longer. Fix a bunch of compiler errors which came along with this change.
TODO: Project should compile but give tons of compiler warnings.
2010-01-05 23:14:33 +00:00
98e75ceaea
ParentFont=False is not needed when changing Font.Style (only for Font.Name + .Size I think)
2010-01-02 17:09:34 +00:00
811f3df7c6
Emphasize label of checked "Drop" checkboxes, so the user is warned. Fixes issue #1493 .
2010-01-02 13:32:10 +00:00
d8f2c9831d
Enhance datagrid: Set focus on the previous selected row, or at least on row #0 , so the user sees the grid has focus
2010-01-02 07:46:55 +00:00
b85ee7cb1f
Fix compiler error in previous commit
2010-01-02 07:46:00 +00:00
9ec5a0c204
Fix detecting a mouse click on a tab close button. MouseUp is also fired without MouseDown if the focused tab switched between MouseDown and MouseUp - don't close tab in that case. Fixes issue #1469 .
2010-01-01 11:36:32 +00:00