76f2952a84
Try to fix issue #693 : Import CSV file: LOAD DATA fails with UTF-16 encoded file.
...
Pros:
- CSV/HTML/XML exports are now encoded as UTF-8, not UTF-16. Importing such CSV files should now work magically when using the Import CSV dialog.
- Exported files should now be significanty smaller when most content is latin1 encoded.
2008-08-28 16:05:56 +00:00
776fa891a8
Use WideDequotedStr as a replacement for the helpers:TrimC . Fixes Unicode in autocompletion logic.
2008-08-27 18:09:53 +00:00
07d4f1c9d4
Fix (re)storing Unicode table and column names for the ORDER BY clause
2008-08-27 18:01:15 +00:00
70969b2fc1
Avoid a full table load on column auto resizing by using the new Column.coSmartResize option in VirtualTree 4.7.0 . "Smart resizing" only takes the cells in view to check the needed width, instead of all cells.
2008-08-27 15:40:15 +00:00
007798c10a
Update VirtualTreeview component to 4.7.0, released on Aug 24, 2008.
2008-08-27 15:28:43 +00:00
baa8ceb024
Memo editor enhancement: Disable/enable the "Apply" button according to if the text was modified or not.
2008-08-27 14:32:41 +00:00
369450d14f
Memo editor fix: Changing the scrollbars invoke the OnChange event. Avoid thinking the text was really modified in that case.
2008-08-27 14:20:58 +00:00
06a7242891
Fix crappy positioning of memo editor: MemoEditor.Parent was set to DataGrid which was the reason for why it couldn't exceed the borders of DataGrid. Now, Parent is left to default (mainform) and it's centered on the main form, which seems to also fix some cosmetic stuff on Vista.
2008-08-27 14:11:49 +00:00
8367deb592
Fix bug #613 Target database not remembered in Export window
2008-08-26 19:38:49 +00:00
cd6e4024a6
Fix bug #689 insert row into table BUTTON is enabled when I'm not connected
2008-08-26 10:10:28 +00:00
43b86901d7
Fix displaying the original text in the memoeditor when editing a field for the second time.
2008-08-26 10:05:28 +00:00
55aad43115
The memoeditor has a window heading since 1700 which surely includes a "Close" system button. If this button was pressed, editing was neither cancelled nor applied. Fix that by implementing a confirmatin dialog in case the text was modified.
2008-08-26 09:52:58 +00:00
2cff5732fc
Remove no longer needed routine for autocalculating row limit: GetCalculatedLimit. The Export SQL dialog now uses a constant number of 5000 rows fetched per step. Also removes the option in the preferences screen for limiting the data amount, which was misleading the user before and only used to limit the export stuff.
2008-08-26 09:09:41 +00:00
e2b67b5831
Cosmetic: Replace old style SQL wait mouse cursor with system default wait cursor. Especially prettier when running Vista.
2008-08-26 08:36:06 +00:00
c197a86751
Fix rfe #695 Disable "Drop database" in tree popup if a table is selected
2008-08-26 08:28:07 +00:00
2ff02a7eb1
Don't hide the window caption of the memo editor, display the form as toolwindow. Looks better since the form is centered.
2008-08-26 06:14:48 +00:00
7e2897ebcf
Fix bug #696 Problem with popup editor editing the last record.
...
Solution: Always center the memo editor within the grid.
2008-08-26 05:56:43 +00:00
d8f5674b3d
Implement ENUM grid field editor, basically a combobox
2008-08-26 05:14:05 +00:00
223b9713c3
Fix bug #688 "add field -> AutoIncrement checked and disabled"
2008-08-26 04:40:54 +00:00
b333c83c6e
Fix unquoted primary key columns in copy table dialog
2008-08-25 20:26:34 +00:00
6daf4b3f76
Fix most remaining Unicode unsafe GUI controls.
2008-08-25 20:24:00 +00:00
d23492588f
Treat BIT columns like BLOBs on the datagrid. Fixes an AV, similar to issue #686 .
2008-08-21 06:09:15 +00:00
b10b464771
Fix issue #694 : Column comment silently deleted after renaming
2008-08-20 19:43:42 +00:00
7799e30c7b
Keep the Copy CSV/HTML/XML actions enabled if a result has 0 rows. Enables users to copy the column names.
2008-08-20 18:49:25 +00:00
3517253af7
Fix unicode table names and comments in alter table dialog
2008-08-19 23:01:31 +00:00
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
d0086ea2dc
Added missing reference of TNT Component on Search Path of VirtualTreeview Component.
2008-08-15 03:49:18 +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
9191bc5496
Get rid of warnings that fire unexpectedly..
2008-08-14 21:09:16 +00:00
2f09520063
Get rid of annoying warnings, leaving a pointer in the source to the relevant calls.
2008-08-14 21:08:00 +00:00
e27b9e0fab
Remove EDBImage.
2008-08-14 20:38:18 +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