dedc3d92b1
Fix fieldeditor and neighbours for Unicode table- and columnnames
2008-08-19 22:48:05 +00:00
03550f32a0
Fix redundant "USE xyz" queries firing before each query while working in a database with weird characters in its name.
2008-08-19 22:02:26 +00:00
b56690886b
Fix browsing content of tables with weird characters in their name.
2008-08-19 21:55:40 +00:00
79d8db08b3
Support Unicode in list of wanted database names.
2008-08-19 21:35:04 +00:00
782d941f40
TRegistry cannot handle widestrings. Fix restoring last used database name if that contains international characters.
2008-08-19 19:41:10 +00:00
f2ed48bf2d
Fix bug #679 and friends: Database name has a new line attached to it.
...
Broken in r1635. TWideStrings.Append doesn't explode its text parameter to multiple items, it's meant to append one single item.
2008-08-19 18:55:30 +00:00
2d5c69a9cb
Buttons/toolbar enhancement:
...
- Add missing "Cancel editing" button to main toolbar
- Add missing "Post updates" button to popupDataGrid
- Add shortcut "Ctrl+Enter" to "Post updates" action
2008-08-19 17:27:35 +00:00
6db030c944
Fix bug #686 "AV when browsing certain BLOB columns"
2008-08-18 22:09:38 +00:00
9ae9a3a768
Refactor dataset2html/csv/xml routines:
...
- Use TMemoryStreams for copy actions, TFileStreams for export actions. Should save some memory when saving to files and improves performance by factor ~100 on larger grid results.
- Fetch text from the Grid.Text, not from the underlying TGridResult.Rows array. Fixes issue #685 .
- Removes non functionial export of image files from BLOBs
- Sanitize helpers function from GUI code (mousecursor, opening result file, ...)
Todo:
- Limit export to a user defined number of rows. Important for large tables.
- Fetch entire TEXT field content, currently limited to 256 chars
2008-08-18 21:55:59 +00:00
c1df30bb7d
Enable "Return" as shortcut for both "Table properties" (ListTables) and "Edit field" (ListColumns) actions. Fixes rfe #523 .
2008-08-17 06:19:01 +00:00
780f703016
Fix compiler notice, related to previous commit.
2008-08-16 07:34:56 +00:00
5e817a5c57
Fix AV in deselecting columns for the datagrid
2008-08-16 07:33:41 +00:00
3ddc5a849f
Fix remaining ANSI escaping bug in esc(), related to bug #683 .
2008-08-16 06:14:44 +00:00
87a804275a
Fix bug #683 , cli version exports escaped and quoted like ANSI exports.
2008-08-15 20:42:21 +00:00
a686c05cd8
Stop telling users ANSI SQL is some neutral target version which works for every dbms
2008-08-15 19:51:39 +00:00
6d27b71578
Hopefully fix bug #684 . To be tested...
...
Caused by: SELECT @found_rows fired by Zeos internally without having this variable set previously. (I wonder why this only happened in certain situations)
Solution: Remove SQL_CALC_FOUND_ROWS stuff completely as we don't need it anymore having EnsureDataLoaded().
2008-08-15 18:32:54 +00:00
099c871112
Workaround: got some AVs while browsing mysql.test_blah tables on a slow server. Maybe a side effect of the 'slow database' sign popping up and some VirtualTree events getting processed in the popup's message loop. Not really fixed, so may result in a grid full of 'Node-Node-Node' at some point, hmm.
2008-08-14 21:58:41 +00:00
685c6dbe81
Bugfix: if a table selected in the tree were removed, and the tree then refreshed, the tree would disappear "forever" due to an unpaired BeginUpdate (no EndUpdate due to exception).
2008-08-14 21:39:08 +00:00
b9f0ad2041
Bugfix: avoid constructing nasty queries when the user enters eg "a\b'c" in an integer column.
2008-08-14 20:26:11 +00:00
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
e0d847ed8a
Fix bug #682
2008-08-14 18:59:28 +00:00
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
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
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
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
971385c4c3
Fix bug #675
2008-08-13 19:08:52 +00:00
3c30298e51
Hopefully fix #669 this time
2008-08-12 21:50:44 +00:00
125ed5b264
Bugfix: (regression) Format()'ing the query caused % operators in filters to break.
2008-08-12 02:43:15 +00:00
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
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
c25f3ff8c7
Terminology: a column can be part of a primary key.
2008-08-11 21:24:47 +00:00
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
2bf9736522
Correct a comment.
2008-08-11 20:07:25 +00:00
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
ed99c16c70
Fix bug #669 Memo editor increases height each time called
2008-08-11 18:30:54 +00:00
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
1a75a3f312
Implement a date/datetime/time editor for the datagrid. Basically a TDateTimePicker.
2008-08-10 22:02:21 +00:00
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
3b0f5be4bb
Implement handling of maximum input length for the memo editor
2008-08-10 15:34:47 +00:00
5852993d02
Fix issue #664 delete record shows wrong record after delete
2008-08-10 10:46:44 +00:00
fe73090f51
Refocus grid when the memo editor is closed.
2008-08-09 19:48:46 +00:00
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
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
1c3780036b
Fix bug #306 process list autorefresh causes exception
2008-08-09 09:08:28 +00:00
026ffd58a2
Fix bug #641 table names not colored in sql query editor
2008-08-09 08:55:30 +00:00
7198f0b5ab
Fix bug #657 "Renaming a view generates ALTER TABLE"
2008-08-09 08:46:20 +00:00
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
aabd4bbf57
Add some more support for databases and tables with unicode characters.
2008-08-08 19:32:24 +00:00
76aa8aaba1
Apply word wrapping to process list sql viewer.
2008-08-08 13:59:18 +00:00
09cfeb65be
Bugfix: Show queries with international characters correctly in process list.
2008-08-08 13:39:04 +00:00