Commit Graph

1156 Commits

Author SHA1 Message Date
Ansgar Becker
88eb5e8b57 Minor optimization in TMainForm.LoadDatabaseProperties 2009-06-14 20:03:09 +00:00
Ansgar Becker
d26d93aefa Sanitize MySQL structure unit:
* Remove old, unused code (TMysqlIndex, TMysqlField)
* Move relevant code from helpers to mysql_structures unit
* Rename various stuff to more compact names
* Use ordinal values instead of constants for datatypes and their categories
* Replace TGridColumn.IsXYZ boolean's by a new .DatatypeCat property
2009-06-14 19:45:48 +00:00
Ansgar Becker
f86330032e Table editor: Fix empty index and collation clauses and friends, in ALTER and CREATE TABLE statements, mentioned in issue #1203 . So the user gets a more specific error message 2009-06-13 10:20:16 +00:00
Ansgar Becker
8b37a0bbaa Fix issue #1213: table editor columns misaligned 2009-06-13 06:58:54 +00:00
Ansgar Becker
e684f8be78 Solve issue #1221 and issue #1222: unify window caption and taskbar text, and update them at the right event. 2009-06-12 18:29:59 +00:00
Ansgar Becker
d757b579ac Fix minor memory leak for suspended cached dataset holding collations. 2009-06-12 17:53:16 +00:00
rosenfield.albert
1a39aad6d4 Correct typo. Fixes issue #1199. 2009-06-12 11:53:27 +00:00
Ansgar Becker
403d88ceba Bring more implicit modification calls into the right place so the ALTER code is displayed correctly 2009-06-11 16:05:08 +00:00
Ansgar Becker
184af6ce07 Bring order of implicit event calls into the right order to fix out of date ALTER TABLE code 2009-06-11 15:59:20 +00:00
Ansgar Becker
1b8301c64e Avoid AV in StrToFloat when strings with multiple commas are passed to MakeFloat. Fixes issue #1217: Trying to change sql_mode variable gives a floating point error 2009-06-11 06:41:47 +00:00
Ansgar Becker
ef14ba7cff Bugfix: Change events should not get fired as soon as the table editor has not finished loading. 2009-06-10 15:24:05 +00:00
Ansgar Becker
20cfe200e9 Consistency fix: Revert previous commit - SelectedTable.NodeType should better be lntNone instead of lntDb if SelectedTable.Text is an empty string. Better detect node type via GetFocusedTreeNodeType . 2009-06-10 15:04:13 +00:00
Ansgar Becker
9a49c7ea9c Fix non working "Edit" menu item for calling ALTER DATABASE dialog 2009-06-10 09:48:39 +00:00
Ansgar Becker
41cf19de59 Fix issue #1191: Table editor should only touch changed columns. 2009-06-10 09:18:38 +00:00
Ansgar Becker
c6743e087b Fix issue #1211: Table editor, length/set should be ignored or suppressed for datatypes which don't support that. Also, make relevant code for cell editing allowance and cell background painting more easy and less redundant. 2009-06-09 20:13:35 +00:00
Ansgar Becker
a9ded30c49 Remove debug output from r2467 2009-06-09 18:40:02 +00:00
Ansgar Becker
6c4b998069 Fix issue #1204: unable to delete a "0" char in Default field in the table editor 2009-06-09 18:38:50 +00:00
Ansgar Becker
b52791aad6 Find less confusing, more unique names for two methods around DBtree. 2009-06-09 18:28:19 +00:00
Ansgar Becker
65460a351d Fix issue #1205 Moving focus from db to table by keyboard calls ALTER DATABASE dialog 2009-06-09 18:20:50 +00:00
Ansgar Becker
f5de381e05 Fix issue #1209: list index out of bound when deleting a just created index 2009-06-09 12:54:11 +00:00
Ansgar Becker
982e2850fa Remove dead code 2009-06-09 06:09:49 +00:00
Ansgar Becker
6deb924b13 Fix issue #1159: Defaults editor in table editor partly hidden in bottom columns. Moves the defaults editor various calculated pixels to left and top so it fits into the client area. 2009-06-08 19:18:36 +00:00
Ansgar Becker
3bc31db014 Split "SQL code" tab into two "ALTER code" and "CREATE code", and display both in ALTER mode for copy+paste purposes. Fixes issue #1195. 2009-06-07 19:09:40 +00:00
Ansgar Becker
70b13675de Fix issue #1192: "Index out of bound" in data tab, header click 2009-06-07 18:26:40 +00:00
Ansgar Becker
20faa923bd Revert accidental GUI changes from r2449 2009-06-07 05:39:19 +00:00
Ansgar Becker
d5ff16f86e Table editor: Enable horizontal and vertical grid lines for readability 2009-06-07 05:35:23 +00:00
Ansgar Becker
63ca742b6d Table editor: center align column captions with centered checkboxes 2009-06-07 05:31:09 +00:00
Ansgar Becker
358100d6b3 Fix issue #990: SQL error if switching from table to data view, if column to sort by has been deleted. Plus: fix relevant naming convention for property + field. 2009-06-06 19:42:20 +00:00
Ansgar Becker
60d300b75a Fix non resizable columns with an activated TEnumEditor by removing a non working Vista-fix. Setting TComboBox.ItemHeight is effective only in OwnerDraw mode which we do not have here. 2009-06-06 06:17:13 +00:00
Ansgar Becker
8ca38b4e48 Fix issue #1161: Enum editor pops up in the upper left corner 2009-06-06 06:12:34 +00:00
Ansgar Becker
4c65ccc86f Fix issue #1193: Rename button is enabled if no session is selected in session manager 2009-06-06 05:48:39 +00:00
Ansgar Becker
6576461b9e Try to fix issue #1188: weird values in collation pulldown inside the text editor. Could it be that TField.AsString is broken if this heals the problem. 2009-06-05 20:44:39 +00:00
Ansgar Becker
edcd544953 Fix issue #1180: AV while fetching column names for query helpers box on editing a stored routine 2009-06-05 20:33:57 +00:00
Ansgar Becker
26caf19b3b Add basic support for 3.23 servers in table editor. Fixes issue #1177. 2009-06-05 19:04:37 +00:00
Ansgar Becker
3d0682bea5 Fix issue #1174: Table editor, column editing: Let Esc cancel the defaults editor and Enter accept changes. 2009-06-05 17:32:47 +00:00
Ansgar Becker
bffc1df93b Minor: Revert accidentally changed GUI stuff in recent commit. 2009-06-05 17:27:48 +00:00
Ansgar Becker
11c70f62ee Fix issue #1176: Can't change table engine after creation. Seems a TCombobox.OnChange is not fired if a OnSelect coexists. 2009-06-05 17:25:35 +00:00
rosenfield.albert
164d612e6d Bugfix: issue #1190. 2009-06-05 12:10:22 +00:00
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