240 Commits

Author SHA1 Message Date
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
53da54e235 Merge VirtualTree component to unofficial v4.8.7. Fixes issue #1157: Database tab select all disabled 2009-05-26 21:29:42 +00:00
e97f6f5955 DBO_TYPE is used in different contexts, not only as deprecated column name for engine. 2009-05-24 06:36:11 +00:00
7cf4a22a71 Accidently introduced a new constant in the previous commit which was already existing. Decided to keep the new one which has a clearer name. 2009-05-23 17:45:17 +00:00
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
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
072a7d18e2 Merge VirtualTree component to v4.8.6 (r181) 2009-05-17 05:50:06 +00:00
8f2e052c30 Missing file in r2414 2009-05-16 18:26:01 +00:00
7f32b33505 Issue #436: Implement a new table editor dialog. Nukes both create + alter table dialogs. 2009-05-12 22:24:09 +00:00
eadeed1ae2 Use helper methods where possible, and leave GUI stuff in form units. 2009-04-28 22:35:00 +00:00
5687b8d7bf Extend detection of irregular linebreaks into a more informative method, now detecting various (non)consistent linebreaks. Related: issue #1095 and issue #1094 2009-04-21 17:06:42 +00:00
2b8e3ac271 Issue #1074: Make maximum number of total rows displayed in datagrid configurable 2009-04-08 20:16:33 +00:00
d3c505f032 Remove unused constants and code. 2009-04-05 11:54:02 +00:00
fc433bf38f Add background color feature to SQL highlighting via preferences 2009-03-31 22:57:08 +00:00
cafd2a8c16 Enhancement in preferences dialog, SQL styles:
* Use AttrCount and Attribute[x] in SynEditHighlighters to iterate through available attributes, instead of doing less with more code.
* Use integer registry values for highlighter colors (were strings) and also integers for bold, italic, underline, strikeout (was one boolean per attribute).
a) optimizes registry access b) normalizes registry names and c) simplifies code. Unfortunately this breaks everyone's customized highlighter style - hopefully ok to do this is in an interim build.
2009-03-31 22:24:00 +00:00
6566f160ed Fix international characters in grid column headers (issue #994) 2009-03-31 17:23:03 +00:00
f2ecca5dcd The mysql protocol is broken design-wise a couple of places, this is one of them. The server sends us a string, but doesn't tell which encoding it's in.
Rewrite the old code a bit to make the automatic PChar->WideString conversion explicit, also add a block of code that tries to guess if the server is sending UTF-8 and react properly to that.

A step on the way to fixing issue #994.
2009-03-31 04:39:43 +00:00
992e2a4236 Fix issue #953: Add checkbox to toggle bold font in SQL font preferences. Also adds italic option for all attributes. 2009-03-18 21:51:06 +00:00
3b376821bf Use descriptive database object icons in completion proposal pulldown, instead of colored labels ("table", "function", "keyword", ...). Saves some horizontal space also. 2009-03-18 20:12:58 +00:00
385d650d6a Fix issue #1050: Stored Routines become a one-liner. (Why the heck does Zeos prepared statements / parameter stuff, even after we switched TZQuery.ParamCheck off?) 2009-03-17 22:50:37 +00:00
47662cac51 Work around malfunctioning escape key in various forms with TSynMemo's (view/routine editors, alter table ...).
See also closed (as invalid) bug report in SynEdit's tracker: http://sourceforge.net/tracker2/index.php?func=detail&aid=1096749&group_id=3221&atid=103221
2009-03-16 22:44:07 +00:00
c1e24cdcc9 My change in r2327 found its way to VirtualTree's official branch. My nice comment not... 2009-03-14 07:22:00 +00:00
4ae5b43c05 Bug workaround: not sure why, but seen this assertion fire. 2009-03-12 20:21:42 +00:00
4ba459b0f8 Bug workaround: avoid dereferencing DriverManager if ZdbcIntfs has already been finalized. 2009-03-12 20:19:52 +00:00
62915ceb60 Bugfix: don't dereference the MethodPatches object on finalization, it may never have been initialized, or it may have already been nil'd in RevertPatchedMethods(). 2009-03-12 20:16:45 +00:00
71d52e52c6 Fix VirtualTree to fire the "normal" OnHeaderClick event if a column with an icon was clicked. This error shows up in datagrid if you click a column for sorting twice - the second click is ignored.
Plus: OnHeaderImageClick was called when you click exactly on the column header glyph. But if no procedure was assigned here, even OnHeaderClick was not fired which is silly from a users point of view.
2009-03-11 00:22:12 +00:00
0bcc662c37 Merge updated VirtualTree component to 4.8.4 (r179) from svn://www.soft-gems.net/library/VirtualTreeview 2009-03-10 22:21:13 +00:00
8b65a83953 Fix previous commit: Same float format in Query grid as in Data grid 2009-03-09 22:38:38 +00:00
af6d15e0e9 * Clear the database hint after reconnection.
* Make the connected hint public, so an outside caller can check whether a Reconnect() is useful or not.
2009-03-04 14:14:34 +00:00
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
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
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
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
694f3f15fd Try to make it easier to debug a memory read outside an array's bounds (issue #997) by putting each indexing on it's own source code line. 2009-02-17 22:07:22 +00:00
058542b39b Increase the number of rows fetched in one chunk to reduce overhead (probably still too low, should be tested on production systems) 2009-02-16 23:25:34 +00:00
9f9a1c77ab Remove unused variable. 2009-02-12 13:41:53 +00:00
c824c4033c Fix bug #474: added column doesn't show up when a column filter is active. 2009-01-28 21:20:41 +00:00
e791339e86 Try a pragmatic workaround for bug #761 (Large tables crash TVirtualTree) and bug #950 (Decrease memory usage for grid results). Makes the data grid hard limited to a maximum of 100,000 rows/nodes (means ~6M memory consumption just for the tree nodes). It seems reasonable to do this as on large tables you normally create a filter to find specific rows rather than scrolling and looking the rows up by hand. The grid is now able again to display superlarge tables without losing too much memory for data of few interest. However, I hope there's no complaint the other way around for why we don't display all rows instead. 2009-01-27 19:32:20 +00:00
d4368bc33b Fulfill rfe #637: Reintroduce filter history drop down. Integrated as submenu of the existing context menu in filter memo. 2009-01-25 10:35:51 +00:00
1f6e894ba5 Implement a preference option to limit the size of "Copy as CSV/HTML/XML/SQL" actions. Helps with bug #793: app freezes when 'copy as csv/xml/html' is selected. 2009-01-18 22:32:31 +00:00
6998a88ac8 Change ListVariables to be updated on demand, when it gets painted or refreshed. Removes SHOW VARIABLES from startup queries. 2009-01-14 20:38:10 +00:00
7ce39e4e58 Disable Zeos' disconnect message and create a nicer one in main.pas 2009-01-04 14:49:55 +00:00
0b7f87c6c2 Get rid of redundant start log message 2009-01-03 18:11:02 +00:00
6c941f2f9c Fulfill issue #885: Make create table form resizable 2008-12-28 11:33:13 +00:00
bc58797405 Implement per session background color selection for database tree. rfe #896. 2008-12-28 10:56:47 +00:00
32fad96276 The new inplace editor neutralizes the need for a preference option "Enable popup text editor". Remove it. 2008-11-25 19:35:02 +00:00
19e7043a0a Attempt to fix issue #845. 2008-11-10 23:07:55 +00:00
59bb5e45b8 Silence unhelpful 'Check what must be adapted' (?) messages from SynEdit developers to SynEdit developers. 2008-10-19 22:45:23 +00:00
07cb5549e9 Remove a remainder of pre Delphi 11 support 2008-10-18 16:56:21 +00:00
e7874bc4b7 Update UniSynEdit to latest version from October 3, 2008 (no repository available unfortunately)
* Merge with heidi related changes (basically only SingleLineMode)
* Readd missing file changelog.htm to keep that file list consistent with the downloaded one
* Merge our own compiler detection again
* Disable including a further compiler includefile jedi.inc
2008-10-18 13:09:16 +00:00