Commit Graph

1013 Commits

Author SHA1 Message Date
rosenfield.albert
538cfde530 Fasten string replace by avoiding lots of SetLength(..., Length(...)+1) calls. Maybe. Haven't actually tested it ;-). 2008-08-14 20:23:53 +00:00
Ansgar Becker
e0d847ed8a Fix bug #682 2008-08-14 18:59:28 +00:00
rosenfield.albert
4538669342 Workaround: for certain mysqld versions, for all SHOW queries, decode data as "utf8" instead when the server says data is "binary". Hopefully fixes issue #671, at least for those people that have database and table names in plain English. 2008-08-14 18:20:50 +00:00
Ansgar Becker
4adf27a845 Fix bug #678. Changes FSelectedTableColumns and FSelectedTableKeys to be properties, fetched on demand, set to nil to signalize they're invalid after renaming or deleting a column. 2008-08-13 21:31:15 +00:00
Ansgar Becker
36a899abf1 DataGrid refreshing:
- Restore column widths if the table has *not* been switched
- Scroll to top left if table *has* been switched
2008-08-13 20:38:35 +00:00
Ansgar Becker
3ecc3b0fdf Fix bug #663.
Caused by: "dataselected" variable seems always false currently.
Decided to always cancel unposted modifications when switching focus. Posting UPDATEs or INSERTs is something explicit, not implicit.
2008-08-13 20:29:26 +00:00
Ansgar Becker
bf587fc792 EnsureDataLoaded is automatically called after an INSERT was posted and GridFinalizeEditing() sets Row.State to grsDefault. That makes fetching the just inserted row totally superflous.
Could have been slightly prettier to leave the SELECT of a single row in GridPostInsert() rather than having EnsureDataLoaded SELECTing unrelated rows but I couldn't find a way how to accomplish that.
2008-08-13 19:17:44 +00:00
Ansgar Becker
971385c4c3 Fix bug #675 2008-08-13 19:08:52 +00:00
Ansgar Becker
3c30298e51 Hopefully fix #669 this time 2008-08-12 21:50:44 +00:00
rosenfield.albert
125ed5b264 Bugfix: (regression) Format()'ing the query caused % operators in filters to break. 2008-08-12 02:43:15 +00:00
rosenfield.albert
6e4cb43813 * Experimental: adjust row limit by dragging the data grid scrollbar instead of manually entering numbers in the toolbar.
* Experimental: fetch only first 256 bytes of large fields when loading rows into the data grid.
* Fixes rfe #362, rfe #459, rfe #475 and rfe #621.
2008-08-12 02:06:22 +00:00
Ansgar Becker
fa17d1eb8d Add a toolbar with some useful buttons to the memo editor:
Wrap long lines, Load textfile, Cancel, Apply
Plus: a label showing the current and the allowed text length
2008-08-11 23:16:46 +00:00
rosenfield.albert
c25f3ff8c7 Terminology: a column can be part of a primary key. 2008-08-11 21:24:47 +00:00
rosenfield.albert
88fc0316a5 Saving the childwin pos/dim is error prone; avoid this by just maximizing it at all times (which is it's only useful state anyway). 2008-08-11 20:54:56 +00:00
rosenfield.albert
2bf9736522 Correct a comment. 2008-08-11 20:07:25 +00:00
rosenfield.albert
95b4b2a642 * Make virtual desktop name on application load, resolution change, monitor count change and monitor placement change.
* Store main window placement using above name.
 * Load main window placement using above name.
 * Fixes issue #568.
2008-08-11 19:54:20 +00:00
Ansgar Becker
ed99c16c70 Fix bug #669 Memo editor increases height each time called 2008-08-11 18:30:54 +00:00
rosenfield.albert
bcf26b1c98 Bugfix: get rid of another Close() call which lead to a spurious mrCancel. Fixes issue #665. 2008-08-11 15:23:52 +00:00
rosenfield.albert
d51bf06b79 Bugfix: (regression) recognize text columns properly when connected to an old server version. 2008-08-11 14:29:50 +00:00
Ansgar Becker
d7b023220c Switch order of TNT + VT packages to fix autobuild process. VT needs TNT to be built earlier. 2008-08-10 23:17:45 +00:00
Ansgar Becker
01de625adc Acticate TNT support in VirtualTree package which magically enables Unicode in the built in inplace editor of ListTables, ListColumns etc. Unicode table names can now be renamed safely.
(VT now needs to be build after TNT has been built (see changes in the superpackage) otherwise we would get AVs in the IDE.)
2008-08-10 22:51:25 +00:00
Ansgar Becker
1a75a3f312 Implement a date/datetime/time editor for the datagrid. Basically a TDateTimePicker. 2008-08-10 22:02:21 +00:00
Ansgar Becker
9a938d960b Treat char datatype exactly like varchar for grid editing. Read: activate the memo editor for char's. 2008-08-10 15:38:42 +00:00
Ansgar Becker
3b0f5be4bb Implement handling of maximum input length for the memo editor 2008-08-10 15:34:47 +00:00
Ansgar Becker
5852993d02 Fix issue #664 delete record shows wrong record after delete 2008-08-10 10:46:44 +00:00
Ansgar Becker
fe73090f51 Refocus grid when the memo editor is closed. 2008-08-09 19:48:46 +00:00
Ansgar Becker
81609c83cb Enable shortcuts in memo editor:
- Escape for cancel editing
- Ctrl + Enter for apply text and end editing
2008-08-09 19:47:13 +00:00
Ansgar Becker
8c83507561 Code structure: Seperate editor link from memo editor form, into own unit grideditlinks.pas . All edit links can live here while the used forms will need their own unit + dfm. 2008-08-09 17:52:01 +00:00
Ansgar Becker
1c3780036b Fix bug #306 process list autorefresh causes exception 2008-08-09 09:08:28 +00:00
Ansgar Becker
026ffd58a2 Fix bug #641 table names not colored in sql query editor 2008-08-09 08:55:30 +00:00
Ansgar Becker
7198f0b5ab Fix bug #657 "Renaming a view generates ALTER TABLE" 2008-08-09 08:46:20 +00:00
Ansgar Becker
c0bed49a2f Fix bug #654 "Edit -> Add primary index -> Crash" by preventing the cell from going into edit mode if there is no unique key available. 2008-08-09 08:31:04 +00:00
Ansgar Becker
aabd4bbf57 Add some more support for databases and tables with unicode characters. 2008-08-08 19:32:24 +00:00
rosenfield.albert
76aa8aaba1 Apply word wrapping to process list sql viewer. 2008-08-08 13:59:18 +00:00
rosenfield.albert
2b6519baf6 Workaround: ftBytes causes breakage in Delphi Variant handling code. Could not find a bug in Zeos, so decided to just avoid using it. 2008-08-08 13:40:22 +00:00
rosenfield.albert
09cfeb65be Bugfix: Show queries with international characters correctly in process list. 2008-08-08 13:39:04 +00:00
rosenfield.albert
4c4387c155 * Close() yields mrCancel, remove the Close() call. The dialog closes anyway when a button is clicked, now with the correct modal result.
* Return an integer from ConnectionWindow() rather than Booolean, makes the code in caller easier to read.
* Close HeidiSQL if the user chooses not to connect to a server.
2008-08-08 10:17:50 +00:00
rosenfield.albert
66d5351f0e Bugfix: avoid infinite recursion when table data fails to load. Fixes issue #329 and issue #563. 2008-08-08 08:33:57 +00:00
rosenfield.albert
df37fb8be0 Terminology and similar updates (followup). 2008-08-08 08:22:42 +00:00
rosenfield.albert
ae87769f9c Bugfix: switch back to normal cursor after failed database operation.
Issue #180 doesn't seem to reproduce anymore, not here anyway.
2008-08-08 00:08:45 +00:00
rosenfield.albert
071e68c598 * Bugfix: column type dropdown was rendered incorrectly with non-default font dpi configurations. Fixes issue #615.
* Commented code that shows how to get current DPI.  Feel free to delete.
2008-08-07 23:55:13 +00:00
rosenfield.albert
bf24403596 * Crashed tables were mistaken for views. Fixes issue #650.
* Add separate node type for crashed tables, so that some sort of a graphic can be associated with those.
2008-08-07 23:17:28 +00:00
Ansgar Becker
ad9ebc4161 Treat varchars in grids like text fields are treated: green color + memo editor 2008-08-07 23:07:03 +00:00
Ansgar Becker
7d168f5526 Now the memo editor has its own unit to live in the editor link should also live there. Moves relevant code from main and rename the object to TMemoEditorLink to be more clear. 2008-08-07 22:39:22 +00:00
Ansgar Becker
b0466f3de8 Revert r1606 - discussed on the list 2008-08-07 21:42:01 +00:00
rosenfield.albert
a3ab287273 Bugfix: the BINARY (0x80) flag has been broken in recent libmysql.dll versions, for some reason. Workaround. Sort of fixes issue #660. 2008-08-07 21:13:38 +00:00
rosenfield.albert
a0cd049f78 Bugfix: regression from previous commit (embarrassing typo). 2008-08-07 21:05:45 +00:00
rosenfield.albert
55e4f6960b Add more steps for easier debugging. 2008-08-07 20:36:19 +00:00
Ansgar Becker
6b17b239ba Give the memo editor its own unit + dfm file. Enables us to use the IDE for designing it. 2008-08-07 20:32:01 +00:00
rosenfield.albert
70370dca8c Always export files in UTF-8. 2008-08-07 19:44:40 +00:00