Commit Graph

1026 Commits

Author SHA1 Message Date
rosenfield.albert
9a7a0b64a1 Revert r2316, and move code that's supposed to be run before the main form is visible from FormShow into a new procedure, Startup(). Fixes issue #1041. 2009-03-12 20:00:18 +00:00
Ansgar Becker
814b4ee14b Ban vertical line from all TSynMemo's. Never heard of anyone using it, and fixes issue #1051. 2009-03-12 19:50:42 +00:00
Ansgar Becker
1c1c1e8e36 Fix more candidates for issue #858 ("Cannot perform this operation on a closed dataset") 2009-03-12 19:36:44 +00:00
Ansgar Becker
03748ec6eb Free cached session based datasets (and forms which make use of those) on session disconnect, not on FormClose. Fixes various closed-datasets-AVs after session switching. 2009-03-11 22:07:50 +00:00
Ansgar Becker
e312915fd5 Automatic property adjustments by IDE after VirtualTree update 2009-03-10 23:11:59 +00:00
Ansgar Becker
81ad0d4397 Activate Vista theming in trees and lists 2009-03-10 23:04:24 +00:00
Ansgar Becker
05bd9eff61 Remove useless coFixed option from first column of routine parameter list. Works around an AV in the new VirtualTree version. 2009-03-10 22:46:27 +00:00
Ansgar Becker
d2f67ac673 Fix Issue #1042: Auto-show of Filter on "Data" tab 2009-03-09 22:46:53 +00:00
Ansgar Becker
8b65a83953 Fix previous commit: Same float format in Query grid as in Data grid 2009-03-09 22:38:38 +00:00
Ansgar Becker
917adf24ce Fix issue #1012: Formatting floats and decimals 2009-03-09 20:56:59 +00:00
Ansgar Becker
a877f1ba10 Fix issue #1036: Switching to a different table while data tab is open sets focus to table tab. Broken in r2293 - seems that TControl.Show not only unhides a hidden control but also brings it to front via TControl.ShowParentControl. Whatever, fixed now by using Visible := True. 2009-03-08 20:55:45 +00:00
Ansgar Becker
f0264cef56 Handle different styles of linefeeds (Windows, UNIX, Mac) in popup editor. Solves issue #905 and issue #1016
a) Detect current linefeed style
b) Convert all linefeeds to CRLF
c) Let the user chose a different one or leave it as it is
d) Convert linefeeds back to selected before saving
2009-03-08 13:07:44 +00:00
Ansgar Becker
9c3f459802 Do an extra autofitting of the size column when a db was expanded. For cases in which the db was selected but not expanded at first. 2009-03-05 20:00:07 +00:00
rosenfield.albert
6b49c31dc0 Bugfix: Clicking 'Retry' in the lost connection dialog caused the session manager to pop up, because FormShow() did a lot of stuff. Move everything from FormShow() to FormCreate(). 2009-03-04 19:54:18 +00:00
rosenfield.albert
614b8c4851 Background: An optimal fix would be to programmatically disallow the GUI thread (fx inside event handlers) access to anything that happens over the network (fx executing queries on the database connection objects). There's a lot of that stuff going on in HeidiSQL as is however, so fixing things right is a lot of work. Therefore, this is a quick interim fix.
Bugfix: When the connection fails, prevent paint and present a modal dialog until the situation is resolved.
2009-03-04 18:59:25 +00:00
rosenfield.albert
21134ac51e Bugfix: don't try to FocusGridCol() when there is no new column (a "column lost focus" event). 2009-03-04 18:54:18 +00:00
rosenfield.albert
d4c848649c Bugfix: regression - accidentally masked exceptions from Reconnect(). 2009-03-04 17:11:32 +00:00
rosenfield.albert
07964feb7c Bugfix: don't use cached data if the connection is gone, as the Delphi TDataSet will croak. Fixes issue #858. 2009-03-04 14:46:36 +00:00
rosenfield.albert
f4abdbef08 Add a bit more safety around Zeos' inconsistent API. 2009-03-04 14:45:00 +00:00
rosenfield.albert
1d94ad0156 Bugfix: close user manager form when no access to privilege tables.
Forms are not closeable with Close() inside FormShow, you must either return -1 in response to a WM_CREATE message, post a WM_CLOSE (seen that fail too though), or just do the check before showing the form.
2009-03-04 14:43:35 +00:00
rosenfield.albert
db1dc05fa3 Bugfix: really catch any exceptions as supposed to. 2009-03-04 14:16:58 +00:00
rosenfield.albert
1f112b6556 someone at MySQL...
... would have my balls for breakfast if he/she saw this ;-)

Fulfills rfe #383.
2009-03-04 12:15:11 +00:00
Ansgar Becker
ff7eee92f3 Avoid using a workaround where none is needed 2009-03-04 07:22:37 +00:00
Ansgar Becker
bbfff2068f Fix another bug showing up on application close, on slower CPUs and/or in combination with recycled forms. Could also fix issue #1003 (Cancelling connection form crashes HeidiSQL). Should be tested by the reporter. 2009-03-04 00:11:38 +00:00
Ansgar Becker
18d4942066 Fix AV on application close if usermanager was opened (or one of the other recycled dialogs). Nearly sure that this nails issue #1018 - the memory address points to forms.pas. 2009-03-03 23:53:11 +00:00
Ansgar Becker
bf2484a09e Fix fatal loop on datagrid, broken in r2301 2009-03-03 23:38:58 +00:00
Ansgar Becker
a71210689e Fix issue #1013: Refreshing Process-List switches tab instead 2009-03-03 23:09:58 +00:00
Ansgar Becker
0bb025c250 Code cosmetic: Clean up ugly event name 2009-03-03 22:49:36 +00:00
Ansgar Becker
f7b0cfc92c Fix tab order of controls on CREATE TABLE dialog 2009-03-03 20:34:11 +00:00
Ansgar Becker
593adf939c Seems the IN/OUT is not consistently written in uppercase in SHOW CREATE PROCEDURE, probably server version dependent. Anyway, stable now. 2009-03-03 20:30:37 +00:00
Ansgar Becker
b66a62b9f8 Fix issue #1029: Syntax Error on Procedure Routine, destroys PR 2009-03-03 20:24:58 +00:00
Ansgar Becker
7789a1d2fe Fix bug #1030: When creating a Procedure Routine, Tree does not update to show it 2009-03-03 19:22:38 +00:00
Ansgar Becker
6d8834b540 Fix issue #1025 and friends: Wrong tabindex in stored routine editor. 2009-03-03 19:18:03 +00:00
Ansgar Becker
4867fdbbff Fix detection of parameters in SHOW CREATE PROCEDURE/FUNCTION 2009-03-02 21:57:49 +00:00
Ansgar Becker
5201b302de Fix AV on app closing if maintenance dialog was used. Possible candidate for healing issue #1018 "Access violation on closing heidi". 2009-03-02 21:47:35 +00:00
Ansgar Becker
dbb84e6df9 Integrate stored procedures and functions into the GUI flow, so they are visible like tables and editable from everywhere.
- FetchDbTableList now makes use of various tables in INFORMATION_SCHEMA if available - the only way of listing stored routines.
- If a routine is selected, Table + Data tab hide their grids and display a corresponding message instead. Seemed the only way to keep the normal flow of clicks, not changing too much click logic.
2009-03-02 21:40:44 +00:00
Ansgar Becker
36c8937abb Remove feature "Prefer SHOW TABLES for performance reasons" and support for pre 3.23 servers
* Leads to unpredictable errors in special cases
* Advantage over SHOW TABLE STATUS is hardly measurable
* Makes integrating stored routines into the database tab complex and unstable for the benefit of nothing
2009-03-01 10:34:39 +00:00
Ansgar Becker
a1f6c628ef Minor Vista font fix for parameter list in routine editor 2009-03-01 07:33:09 +00:00
Ansgar Becker
bdd0630a44 Fix issue #1017: missing disconnect button in toolbar 2009-02-28 23:20:56 +00:00
Ansgar Becker
aeeea43235 Slightly enhance button storm on main toolbar - issue #738. 2009-02-28 23:16:17 +00:00
Ansgar Becker
f20dad8adb Implement stored routine editor, see issue #420
Todo: make routines visible in the database tab so they can be edited.
2009-02-28 22:57:55 +00:00
Ansgar Becker
42e969cbcd Fix issue #991: Termination char ; in SQL log. 2009-02-22 13:50:44 +00:00
Ansgar Becker
00cf179e31 Fix issue #1011: Updated status of number of exported rows doesn't delete characters of previous longer status message 2009-02-21 12:17:53 +00:00
Ansgar Becker
f8b34d380a Fix wording in auto refresh dialog 2009-02-20 07:24:45 +00:00
Ansgar Becker
e009be16f9 Revert r2211 to fix issue #1005: Update mechanism doesn't restart application 2009-02-18 21:36:04 +00:00
Ansgar Becker
edc2d538d3 Fix issue #1000: export tables - sql syntax error. Escape null characters so they don't cut a string somewhere after escChars was called. 2009-02-18 19:42:01 +00:00
Ansgar Becker
0d6cada653 Finalize performance fix from r2278: Discard node data prior to calling EnsureChunkLoaded with FullWidth.
* makes it superflous to call EnsureFullWidth for any previously loaded nodes - significantly faster now
* no need to have a unique key in the selected table any longer
2009-02-16 23:15:49 +00:00
Ansgar Becker
e16ee4b086 Fix sporadic AV while unhiding grid in GridToXYZ actions. 2009-02-16 20:40:49 +00:00
Ansgar Becker
dcecedd5ba Fix poor performance in GridToXYZ actions on tables with lots of larger text columns: EnsureFullWidth called lots of mini SELECTs. Now, EnsureChunkLoaded is called with FullWidth=True in relevant places. Only already loaded data still has to be completed with EnsureFullWidth - which could be optimized by discarding all loaded data first, but then again this could result in a waste of SELECTs in taller tables. 2009-02-16 20:37:13 +00:00
Ansgar Becker
26a5713c27 Performance fix: EnsureChunkLoaded should be called in a node, not cell context (which is way too often) 2009-02-16 19:51:33 +00:00