Ansgar Becker
ec0d6bbda2
Fix compiler error, broken in previous commit
2009-06-04 17:26:42 +00:00
Ansgar Becker
f01893d08a
Experimental: Reintroduce table tab, this time by placing the existing editors for tables, views and routines as TFrames onto that tab. Unfortunately a whole bunch of GUI changes involved here which makes the diff unreadable. Should solve issue #1149 .
2009-06-04 12:56:55 +00:00
Ansgar Becker
0bed55de02
Fix AV in table editor for clicking right besides a node in a "no column" whitespace
2009-05-28 05:29:34 +00:00
Ansgar Becker
dfc87736de
Fix issue #1156 : Table editor, checkbox state change although mouse clicked elsewhere in white space. Same goes for index tree.
2009-05-25 22:24:49 +00:00
Ansgar Becker
ac66f01b44
Fix issue #1170 : Escape in fields' DEFAULT value selector causes error and access violation
2009-05-25 22:04:24 +00:00
Ansgar Becker
601a6c79f6
Fix issue issue #1169 and friends: DEL key in cell editor interferes with "Remove column" action. Caused by VirtualTree, passing certain keydown's in editors to their parent tree. Work around that by using safe shortcuts which should not interfere with editor actions.
2009-05-25 20:37:28 +00:00
Ansgar Becker
b665ea93df
Fix issue #1167 and friends: "Cannot focus a disabled or invisible window" in active + hidden enum editor
2009-05-25 20:16:23 +00:00
Ansgar Becker
40d0aee4bb
Solve issue #1166 : Export suggests database as filename name. As long as the filename was not manually changed, it is set to [last used directory]\[selected database].sql
2009-05-25 19:14:40 +00:00
Ansgar Becker
fe8ae38dd9
Doubleclicking a stored routine should bring up the editor dialog instead of the data tab.
2009-05-24 17:11:57 +00:00
Ansgar Becker
a6716d7713
Belongs to issue #1137 : Also warn about overwriting a target routine when just the type of routine was switched from proc to func or vice versa, and the name was kept.
2009-05-24 12:16:53 +00:00
Ansgar Becker
4ca5d48993
Fix issue #1137 : Stored routine dropped if it already exists
2009-05-24 12:06:53 +00:00
Ansgar Becker
6f411f7ae4
Same as previous commit - take routine type into account. This time for an existence check.
2009-05-24 11:49:15 +00:00
Ansgar Becker
b79ddd2260
A function named F can exist besides a procedure F. If such two routines exist and the editor was called for one of them, the chance was 50% that you edit the wrong routine.
2009-05-24 10:28:43 +00:00
Ansgar Becker
e97f6f5955
DBO_TYPE is used in different contexts, not only as deprecated column name for engine.
2009-05-24 06:36:11 +00:00
Ansgar Becker
5d42f613c6
Suppress various errors on old servers, where certain columns are spelled differently from newer versions and e.g. SHOW COLLATION is not a valid query. Works around issue #1154 .
2009-05-23 17:38:48 +00:00
Ansgar Becker
fcebc2697c
Fix issue #1151 : Items in main database view (tables/procedures/etc) think they're something else
2009-05-23 07:31:10 +00:00
Ansgar Becker
e3367d53de
Focus a new column's name and go into editing mode after having it added. User can start typing the name immediately after clicking the "Add" button. Suggested on http://www.heidisql.com/forum/viewtopic.php?p=3224
2009-05-22 22:38:48 +00:00
Ansgar Becker
c2fc155a7b
I think this change was meant in issue #1136 - makes the index tree editable by clicking the cells, just like the columns list.
2009-05-22 22:31:55 +00:00
Ansgar Becker
61693a8fcc
Fix issue #1150 : "List index out of bounds" when autofitting any header column
2009-05-22 17:43:35 +00:00
Ansgar Becker
eb6515c692
Fix issue #1152 : Table editor tries to ADD keys in CREATE mode
2009-05-22 17:11:00 +00:00
Ansgar Becker
bece59d669
Table editor: Better use NULL as a valid default value for a new blank INT column, rather than an empty string ('').
2009-05-21 23:13:29 +00:00
Ansgar Becker
e9bf96f493
Fix non editable cells in table editor, broken in r2424
2009-05-21 22:54:19 +00:00
Ansgar Becker
4a607ac702
Fix status/processes lists to update their state after the filter was modified.
2009-05-21 15:48:29 +00:00
Ansgar Becker
9cf841526c
Fix issue #1147 : Query results invisible after resizing main window
2009-05-21 08:44:22 +00:00
Ansgar Becker
b3750421b2
Implement rfe #602 : Explicitely apply collation to all fields if table collation has changed. Generates a "CONVERT TO CHARSET" clause.
2009-05-20 21:10:02 +00:00
Ansgar Becker
cde5558bbc
Remove code around "ValidateControls(*False*)" - a remainder of MDI times, where the mainform needed to know whether there is an open child window or not. Rather use a "Sender" parameter to be able to use it for various GUI events.
2009-05-19 23:30:55 +00:00
Ansgar Becker
a92c3ed489
Fix issue #1089 : Pressing Ins in filter textarea inserts new data line
2009-05-19 23:02:07 +00:00
Ansgar Becker
321195e6a6
Fix duplicated SELECT data queries, broken in r2418
2009-05-19 22:46:46 +00:00
Ansgar Becker
d139ab355d
* Replace all "Edit table|view|..." buttons and menuitems by one single "Edit" item.
...
* Move "Create table|view|..." items into a submenu and have one single "Create" item
* Remove all above mentioned buttons from the main toolbar, leaving them in the context menus where there function is more predictable
* Streamline context menu of db tree and database tab
Fixes issue #1139 , issue #1124 , issue #1108 , issue #820 , issue #738 , issue #595
(The diff tends to be unreadable here, as there are many automatic GUI adjustments after having removed a toolbar)
2009-05-19 22:37:22 +00:00
Ansgar Becker
2acd0170e8
Fix one-click-editing in trees and grids, broken in recent VirtualTree update, r2416
2009-05-17 16:11:09 +00:00
Ansgar Becker
bc33729fdd
Issue #436 : Remove table tab from main tabs, and old field editor. Both were replaced by the new table editor. Doubleclicking a table opens the data tab now.
2009-05-17 16:02:28 +00:00
Ansgar Becker
5eb2420efa
Needed changes after VirtualTree update
2009-05-17 05:51:28 +00:00
Ansgar Becker
20e21f6cc4
Try to fix issue #1127 and issue #1131 (handling float numbers in grids). Do not convert them back and forth using MakeFloat + FormatFloat. Breaks rfe #1012 and r2320 . FloatField.AsString returns an exponent number in various cases which is compatible between MySQL and Delphi. Only those exponent numbers must not be quoted in an SQL sentence - which fixes this commit.
2009-05-16 18:13:56 +00:00
Ansgar Becker
d35b2dbf0f
Fix issue #1130 : Stored routine lost if no name is given
2009-05-16 06:05:20 +00:00
Ansgar Becker
ea71eb13f9
Fix issue #1132 : Error on Create Table in the Table Editor
2009-05-16 06:00:12 +00:00
Ansgar Becker
5209995eed
Enable (re)storing a VirtualTree layout on different forms without naming conflicts in registry. Plus: use that in the new table editor.
2009-05-12 22:41:24 +00:00
Ansgar Becker
7f32b33505
Issue #436 : Implement a new table editor dialog. Nukes both create + alter table dialogs.
2009-05-12 22:24:09 +00:00
rosenfield.albert
ffe82bc8c7
Bugfix: avoid calling FieldByName() with a field name that doesn't exist, it causes an exception. Fixes issue #1118 .
2009-05-05 08:53:54 +00:00
rosenfield.albert
3c48505494
Display a message regarding stored routines only when such an item is selected in the tree.
2009-04-29 13:21:15 +00:00
rosenfield.albert
6c984b7be5
* Bugfix: wrap Tree.{Begin,End}Update in try..finally.
...
* Bugfix: avoid calling AutoCalcColWidths() from finally, since it can easily throw an exception.
Fixes issue #1111 .
2009-04-29 13:06:20 +00:00
rosenfield.albert
57b6530789
Bugfix: Seems that I broke the row counter statistics while doing InnoDB fixes.
2009-04-28 23:22:33 +00:00
Ansgar Becker
eadeed1ae2
Use helper methods where possible, and leave GUI stuff in form units.
2009-04-28 22:35:00 +00:00
rosenfield.albert
8610147eaa
The CSV files currently supported are not standard CSV files but MySQL-specific ones in a format compliant with LOAD DATA INFILE.
...
Importing normal CSV files will give odd effects, such as the text "\12" in a field being converted to a character value etc.
Change the text in the open dialog to read "MySQL CSV file"...
2009-04-28 21:35:33 +00:00
rosenfield.albert
d25e271591
Detect and process NUL characters before giving loaded SQL to SynEdit. Works around issue #1093 .
2009-04-28 21:16:18 +00:00
rosenfield.albert
1d0b3d2b85
Bugfix: avoid mangling newlines when sending SQL to Zeos. Fixes remaining part of issue #1094 .
2009-04-28 20:06:35 +00:00
Ansgar Becker
f6a6379e20
* Fix text editor getting original celltext instead of already modified text from inplace editor.
...
* Set modification flag on popup editor in that case.
* Nukes duplicated error message from r2387 (see issue #1097 ).
2009-04-26 16:29:09 +00:00
Ansgar Becker
a827f68509
Work around for issue #1097 : Text editor mangles text containing NUL. Pops up a warning if text contains one or more #0 chars and removes all of them for editing.
2009-04-25 18:08:31 +00:00
Ansgar Becker
cbcdf27bbd
Work around issue #1094 : SQL editor silently converts newlines. By showing a popup info, saying that file contains mixed line breaks and they were converted to Windows breaks.
2009-04-21 22:26:43 +00:00
Ansgar Becker
40ada7b69c
Related to issue #1094 : Try to handle consistent, non-Windows line breaks in query editor, so e.g. a loaded Unix text later gets saved using Unix breaks rather than Windows breaks.
...
This should also heal query execution for e.g. a loaded Unix text but it doesn't - queries always have Windows breaks when they arrive at the server. Seems that Zeos does a further replacement for non-windows breaks somewhere.
2009-04-21 22:15:00 +00:00
Ansgar Becker
6d96f6d7cf
Remove no longer used constants since r2383
2009-04-21 21:37:59 +00:00