Commit Graph

205 Commits

Author SHA1 Message Date
rosenfield.albert
9f9a1c77ab Remove unused variable. 2009-02-12 13:41:53 +00:00
Ansgar Becker
c824c4033c Fix bug #474: added column doesn't show up when a column filter is active. 2009-01-28 21:20:41 +00:00
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
7ce39e4e58 Disable Zeos' disconnect message and create a nicer one in main.pas 2009-01-04 14:49:55 +00:00
Ansgar Becker
0b7f87c6c2 Get rid of redundant start log message 2009-01-03 18:11:02 +00:00
Ansgar Becker
6c941f2f9c Fulfill issue #885: Make create table form resizable 2008-12-28 11:33:13 +00:00
Ansgar Becker
bc58797405 Implement per session background color selection for database tree. rfe #896. 2008-12-28 10:56:47 +00:00
Ansgar Becker
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
rosenfield.albert
19e7043a0a Attempt to fix issue #845. 2008-11-10 23:07:55 +00:00
rosenfield.albert
59bb5e45b8 Silence unhelpful 'Check what must be adapted' (?) messages from SynEdit developers to SynEdit developers. 2008-10-19 22:45:23 +00:00
Ansgar Becker
07cb5549e9 Remove a remainder of pre Delphi 11 support 2008-10-18 16:56:21 +00:00
Ansgar Becker
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
Ansgar Becker
a70a0f5bd8 Fix compiler error by accidently deleted line in previous commit. 2008-10-17 00:09:00 +00:00
Ansgar Becker
a591edebac Fix bug #714: Impossible to change limit^H^H^H^H^H^H sort order by implementing a fourth button with dropdown menu, enabling the user to save all query elements in one settings. 2008-10-16 23:49:17 +00:00
Ansgar Becker
4cf1864921 Enable customizing SQL colors for identifiers, delimited identifiers, conditional comments and symbols. 2008-10-08 19:12:20 +00:00
rosenfield.albert
c8991495a7 Workaround: reclaim used memory when TVirtualTree crashes in allocation of child nodes. The correct fix would be to postpone creation of child nodes until they are actually needed (dynamic allocation), but I'm not in a mood to learn how TVirtualTree internals work and Mike didn't seem too eager to produce a fix, so this is it for now. Fixes issue #761. 2008-10-08 17:56:24 +00:00
rosenfield.albert
9b4588912c Uniform project settings for a brighter tomorrow. 2008-10-08 17:33:39 +00:00
Ansgar Becker
c87d75efae Implement a simple crash indicator for SELECTing a table's data. This boolean registry value is always set directly before executing the relevant GetResults(). If the query succeeds, the indicator gets just removed directly after that GetResults(). If the table loads for a longer time and the user exits HeidiSQL by killing the process, the indicator is still present and will be used to automatically disable filtering and sorting when that table is loaded again. Helps with issue #714 . See also http://www.heidisql.com/forum/viewtopic.php?p=2638 for a user report which this fix is addressing. 2008-09-28 22:29:08 +00:00
Ansgar Becker
d32d2e8661 Remove ToolbarTable completely from the main tool strip. Seemed worthless in terms of that I think all users rather use the context menu buttons instead of those on the toolbar which are far at the right top (= out of sight). Helps issue #738 a bit. 2008-09-25 22:20:11 +00:00
Ansgar Becker
fd9c44b576 Implement background colors for NULL fields, part 2 of rfe #692 2008-09-23 23:20:20 +00:00
Ansgar Becker
0ef84eb62f Implement preference options to enable/disable the new SET editor, plus color selection for the grid font in SET fields. 2008-09-23 22:33:06 +00:00
Ansgar Becker
d2f354275b Fix name, default value and meaning of preference option "Maximum column width". By default it's 300 now. 2008-09-11 22:44:28 +00:00
Ansgar Becker
abea900229 Make NULL fields in grids significantly brighter, they tend to be not distinguishable from the non NULL fields. 2008-09-09 21:42:24 +00:00
Ansgar Becker
d819dfe8cd Enhancement: Make it optional to display the tables/db sizes in the tree. Rightclick -> "Display sizes" 2008-09-07 20:29:18 +00:00
Ansgar Becker
efbadf5b58 Fulfill rfe #692 "Add color-coding settings to data-appearance tab in preferences". Including new default color for ENUM fields and settings to enable/disable the grid editors. 2008-09-07 15:13:24 +00:00
Ansgar Becker
82740972fe Rounding for copy tabe dialog:
- Fix cut labels using Vista font
- Fix wording in several places
- Normalize positions of controls, use default 8px margin to form edges
- Put a "Select / deselect all" checkbox below the field selection box
- Move registry related constants to const.inc and normalize their names
2008-09-06 19:19:07 +00:00
rosenfield.albert
63c7ce508c Missing file from last commit. 2008-09-04 13:09:54 +00:00
rosenfield.albert
1defb9eaa6 * Bugfix: default enclose/separate for CSV should be " and ;. Takes care of export part of issue #709.
* Indicate in CSV files which rows need to be UNHEX()ed with LOAD DATA INFILE during import.  Takes care of export part of issue #709.
* Optimization: stop copying records and arrays to stack where appropriate.  See also note in helpers.pas.
* Factor out code to extract a cell in it's full width into EnsureFullWidth().
* Create method DiscardData() to release memory for a row.
* Bugfix: GridTo{Xml,Csv,Html} did not export cells in their full widths; they do now.  Fixes remainder of issue #685.
* Bugfix: remove superfluous field separator at end of each CSV record.
* Bugfix: CSV field enclose characters within field data must be escaped by printing the enclose character twice, as per de-facto (is it a standard when there are hundreds of applications supporting it, but *all* the major ones all come from the same company?..) CSV.
* Indicate in CSV files which cells are NULL by removing field enclosing (non-standard MySQL CSV extension).
* Indicate in XML files which cells are null and which cells are in hexadecimal format.
* Bugfix: always escape <, &, > in HTML and XML files.
2008-09-03 21:53:45 +00:00
Ansgar Becker
f719d4f6ee Remove no longer used TExportSaveDialog from HeidiComponents package.
Todo: Probably the remaining code could also live in helpers or so to get rid of that whole package.
2008-09-02 20:11:33 +00:00
rosenfield.albert
58ae3e8d74 Fix what seems like a nasty bug (FBlobData possibly assigned with invalid pointer, later to be freed) and remove some superfluous code. 2008-09-02 20:04:26 +00:00
rosenfield.albert
d60b1b6f93 Rename 'memoeditor' to 'texteditor', in preparation for inclusion of a binary editor. 2008-09-01 19:47:05 +00:00
Ansgar Becker
007798c10a Update VirtualTreeview component to 4.7.0, released on Aug 24, 2008. 2008-08-27 15:28:43 +00:00
Ansgar Becker
8367deb592 Fix bug #613 Target database not remembered in Export window 2008-08-26 19:38:49 +00:00
Ansgar Becker
2cff5732fc Remove no longer needed routine for autocalculating row limit: GetCalculatedLimit. The Export SQL dialog now uses a constant number of 5000 rows fetched per step. Also removes the option in the preferences screen for limiting the data amount, which was misleading the user before and only used to limit the export stuff. 2008-08-26 09:09:41 +00:00
Ansgar Becker
03550f32a0 Fix redundant "USE xyz" queries firing before each query while working in a database with weird characters in its name. 2008-08-19 22:02:26 +00:00
Ansgar Becker
6d27b71578 Hopefully fix bug #684. To be tested...
Caused by: SELECT @found_rows fired by Zeos internally without having this variable set previously. (I wonder why this only happened in certain situations)
Solution: Remove SQL_CALC_FOUND_ROWS stuff completely as we don't need it anymore having EnsureDataLoaded().
2008-08-15 18:32:54 +00:00
Francisco Ernesto Teixeira
d0086ea2dc Added missing reference of TNT Component on Search Path of VirtualTreeview Component. 2008-08-15 03:49:18 +00:00
rosenfield.albert
2f09520063 Get rid of annoying warnings, leaving a pointer in the source to the relevant calls. 2008-08-14 21:08:00 +00:00
rosenfield.albert
e27b9e0fab Remove EDBImage. 2008-08-14 20:38:18 +00:00
rosenfield.albert
4538669342 Workaround: for certain mysqld versions, for all SHOW queries, decode data as "utf8" instead when the server says data is "binary". Hopefully fixes issue #671, at least for those people that have database and table names in plain English. 2008-08-14 18:20:50 +00:00
rosenfield.albert
6e4cb43813 * Experimental: adjust row limit by dragging the data grid scrollbar instead of manually entering numbers in the toolbar.
* Experimental: fetch only first 256 bytes of large fields when loading rows into the data grid.
* Fixes rfe #362, rfe #459, rfe #475 and rfe #621.
2008-08-12 02:06:22 +00:00
rosenfield.albert
88fc0316a5 Saving the childwin pos/dim is error prone; avoid this by just maximizing it at all times (which is it's only useful state anyway). 2008-08-11 20:54:56 +00:00
rosenfield.albert
d51bf06b79 Bugfix: (regression) recognize text columns properly when connected to an old server version. 2008-08-11 14:29:50 +00:00
Ansgar Becker
01de625adc Acticate TNT support in VirtualTree package which magically enables Unicode in the built in inplace editor of ListTables, ListColumns etc. Unicode table names can now be renamed safely.
(VT now needs to be build after TNT has been built (see changes in the superpackage) otherwise we would get AVs in the IDE.)
2008-08-10 22:51:25 +00:00
rosenfield.albert
2b6519baf6 Workaround: ftBytes causes breakage in Delphi Variant handling code. Could not find a bug in Zeos, so decided to just avoid using it. 2008-08-08 13:40:22 +00:00
rosenfield.albert
bf24403596 * Crashed tables were mistaken for views. Fixes issue #650.
* Add separate node type for crashed tables, so that some sort of a graphic can be associated with those.
2008-08-07 23:17:28 +00:00
rosenfield.albert
a3ab287273 Bugfix: the BINARY (0x80) flag has been broken in recent libmysql.dll versions, for some reason. Workaround. Sort of fixes issue #660. 2008-08-07 21:13:38 +00:00