20 Commits

Author SHA1 Message Date
e7bcbdf293 * Bugfix: plug the most obvious memory leaks.
* Clear some unused code and wrong comments.
2007-11-09 09:51:31 +00:00
d3529fd37d Fix bug #1820595 "Access violation in manage indexes" 2007-10-28 12:39:04 +00:00
22f5af0f8b Fix bug #1820597 "Can't delete the last index of a table" 2007-10-28 12:25:31 +00:00
9b90e38572 Fix bug #1685799 "interface allows selecting zerofill without unsigned" 2007-10-28 12:01:34 +00:00
f085be1ca8 Rename mysql.pas and it's helper file installer_function_list_generator.php so their purpose is more clearer to newbies. 2007-10-23 18:49:14 +00:00
17f9730b76 Fix bugs
#1814411 "Incorrect SQL when changing structure on a field"
#1814293 "Incorrect SQL when changing structure on a FLOAT field"
2007-10-16 19:34:25 +00:00
0d0c0ddbef Fix bug #1813760 "TIMESTAMP fields with NULL".
Side effect: Explicitely set "Can be NULL" option if "Not Null" is unchecked
2007-10-16 19:04:59 +00:00
f3e98a9f5b Fix bug #1810117 Updating timestamp fields with default value "CURRENT_TIMESTAMP" 2007-10-12 19:16:04 +00:00
a027d51276 Fix logic in TFieldEditForm.OkClick which lead to closing the fieldeditor with ModalResult=mrCancel after SQL errors, although AddUpdateField() sets mrNone. 2007-10-12 18:51:07 +00:00
b16a5184a9 Do not suppress SQL errors in case the field editor generated erroneous SQL. 2007-10-12 18:44:10 +00:00
88c23b9705 Fix enabled-status of "Move column from or to index" buttons. 2007-09-28 21:39:29 +00:00
9409c798ab Remove ActualDatabase and ActualTable variables, plus various minor optimizations that ensued from said change. Fixes a problem where when:
- viewing data in a table
 - switching to query tab
 - pressing master refresh
some of the tabs would disappear.
2007-09-11 15:58:47 +00:00
970d267a23 Implement feature wish #1779324 : Support for field COMMENT in ListColumns and field editor. 2007-09-06 14:39:11 +00:00
16c0ac36b3 MySQL 4.0.1 and above allow moving a columns position within an ALTER TABLE statement. Use that to overcome various risks of the manual mechanism for older servers. 2007-09-03 09:38:20 +00:00
3f0b70c409 Switch ListColumns from TSortListView to TVirtualStringTree
Additionally/Sideeffects:
- Fix vstFreeNode to delete the item from the array, not only free the item itself
- Change/Rename GetSelectedNodesFromVT to GetVTCaptions and give it the ability to return all captions, not only the selected. This function is very useful now and saves writing much redundant code.

A table with 500 columns needed 3 seconds to display in the TSortListView, now that takes less than a half second.
2007-08-27 00:01:53 +00:00
618d34ec3d Convert ComboboxKeys on the index-editor from a standard TCombobox to a TComboboxEx. Avoids/removes hackish code for drawing icons on items.
Also create some imageindexes constants to const.inc where they will be useful for other units.
2007-08-02 22:26:02 +00:00
d96cf89849 Remove unused form-variable. 2007-08-02 21:29:14 +00:00
74f056b708 Optimize updating indexes: Do the ALTER TABLE query in one go, not in one per changed or new index. So the server only has to rebuild the index file once. Especially changes on big tables with big fulltext indexes benefit from this optimization.
Also ensure the window stays open if any SQL error occurs on applying changes to the indexes, so the user doesn't has to check all changes again in that case, just fix the incorrect option and click OK again.
2007-08-02 21:22:45 +00:00
6a4a5cc1ad Followup to rev 770: Fix declaration of TButton and TabOrder property automatically added by IDE. 2007-07-28 06:50:48 +00:00
3c8f123a81 Move *.pas, *.dfm and *.inc files from root directory to a new "source" subdirectory. Leaving just the readme in the root to give all newbies a very clear and unique starting point. 2007-06-28 20:00:04 +00:00