68 Commits

Author SHA1 Message Date
e045cb3d76 Delphi 2010 has PNG + alpha channel support in TImageList, so we don't need PNGcomponents any longer. 2010-02-08 00:36:17 +00:00
3c34bc5e29 Surround TRIGGER creation export with custom DELIMITER, so readers (including HeidiSQL itself) are able to detect query end positions. Fixes issue #1672. 2010-02-07 16:59:03 +00:00
7629b132cf Do not reset remove AUTO_INCREMENT clause from CREATE TABLE when no data gets exported. Fixes issue #1110. 2010-02-04 18:56:30 +00:00
ea7b9f0132 Cosmetic: Avoid jumping column headers when many notices go into the result log. 2010-02-02 19:23:51 +00:00
478b6fdc4f Fix broken r3034: "100%" was displayed in between on large tables, after each loop of 100MB loading. Fixes issue #1628. 2010-02-02 19:13:55 +00:00
3088490954 After selecting a valid export filename, the export button should be active. Fixes issue #1641. 2010-02-02 00:18:36 +00:00
ec6f467a18 Don't use the calculated percentage of processed row count after exporting each table. Just display a hard coded "100%" so InnoDB tables display the right percentage (at least when table data is at eof). Fixes issue #1628. 2010-01-30 18:00:01 +00:00
fda4aa631f If the specified filename in SQL export dialog is empty, disable the execute button. If the file cannot be created for some reason, do not pop up a message dialog. Instead, log the error message into the result list. Fixes issue #1627. 2010-01-30 17:50:26 +00:00
49b9d9014b Minor code simplification, old TNT StringList workaround. 2010-01-27 23:45:55 +00:00
9f139029b7 Enhance command line processing:
* Rewrite parameter parser
* Remove support for "-C" option (compressed). Anyway switched on by default.
* Add support for loading multiple SQL files at once instead of only one: "fileA.sql fileB.sql ..."
* Also process connection parameters when "Allow multiple application instances" is disabled
* If a session name is specified with -dXYZ, load params from registry, but allow the user to override these by passing e.g. a different user name "-uOtherUser"
Fixes issue #1332.
2010-01-27 23:39:34 +00:00
9f3ad6640c Wording: Users know the differences between INSERT/REPLACE/DELETE+INSERT . Say it more clearly in the selection box what gets generated. 2010-01-19 00:58:07 +00:00
4b91154d6e Do not generate "_binary 0x" for empty blobs. Fixes issue #1610. 2010-01-19 00:55:04 +00:00
9080ad7607 No need to use the Wide* version of string functions any longer. 2010-01-15 20:28:48 +00:00
492f7d04eb Fix injection of database name for direct SQL export to database. Also, do not surround procedure+function creation with DELIMITERs when exporting to database or server. See http://www.heidisql.com/forum.php?t=4803 2010-01-15 19:44:44 +00:00
52ea8f410a Use Unicode enabled TStringList instead of TWideStringList in all places. Should have no visible effect, apart from a very minor performance optimization, as String reference pointers are handled by Delphi, WideString by Windows. 2010-01-14 19:41:58 +00:00
7aaa5af2c2 Avoid accessing non existent dropdown item. Fixes issue #1597. 2010-01-12 18:36:29 +00:00
aad22b923c Fix incorrect base SQL for large SQL dumps which need more than 100MB loop. Reported via forum: http://www.heidisql.com/forum.php?t=4769 2010-01-12 06:33:02 +00:00
4d47af1e9e Code cosmetic:
* Sanitize main unit from unused variables
* Move global variables to public scope
* Bring public vars into some reasonable order
* Move constants to const.inc, unless dependent from some used VCL unit
2010-01-10 17:11:42 +00:00
43b010d227 Inject SVN revision into executable's version infos last segment (4.0.0.[r]). Don't modify main.pas any longer, just version.rc by a new console app. 2010-01-10 13:53:52 +00:00
f65e5bbc68 Don't double check if a column is binary, just trust in the caller doing the right thing. Fixes cut binary values in data grid. Additionally, return hex code right away, so we don't convert the hex value to UnicodeString and back to AnsiString. Consistently rename ColAsAnsi() to BinColAsHex(). 2010-01-07 21:52:35 +00:00
a4652d39a4 * Fix compiler warnings due to implicit AnsiString to (Unicode)String or vice versa
* Remove workaround for Unicode text to and from clipboard
* Fix writing/reading wrong encoded text into/from registry - no need to use Utf8Encode() any longer
* Implement TMySQLQuery.ColAsAnsi() for cases in which we read binary data.
2010-01-07 00:00:56 +00:00
7d401ffde8 Upgrade to Delphi 2010:
* Removes TNT Unicode controls, which are no longer required. All VCL controls now have native Unicode support.
* Remove Delphi 11 packages, otherwise we would either need to keep TNT or break Unicode
* PngComponents update from Uwe Raabe on http://cc.embarcadero.com/Item/26127
* Adjust auto build process
* Since Delphi 2009, Strings are now UnicodeStrings, not AnsiStrings any longer. Fix a bunch of compiler errors which came along with this change.
TODO: Project should compile but give tons of compiler warnings.
2010-01-05 23:14:33 +00:00
98e75ceaea ParentFont=False is not needed when changing Font.Style (only for Font.Name + .Size I think) 2010-01-02 17:09:34 +00:00
811f3df7c6 Emphasize label of checked "Drop" checkboxes, so the user is warned. Fixes issue #1493. 2010-01-02 13:32:10 +00:00
d9254728a8 Ignore triggers and routines in "Find text" and "Maintenance" operations. TODO: Bulk moving routines and triggers should be possible. 2009-12-27 15:08:42 +00:00
12f984b4c4 Add columns to result grid also if AddNotes() is the first or only one to fill it. Fixes issue #1562. 2009-12-27 15:01:58 +00:00
bd1b038d79 Silence compiler warning. 2009-12-27 14:17:16 +00:00
87bbc45617 Code cosmetic: Do not use case..of for a single case. 2009-12-27 13:56:47 +00:00
bed5dce2fb Include stored functions and procedures in SQL export. Fixes issue #1375. 2009-12-27 13:53:47 +00:00
e5ae3a934d Include triggers in SQL export. Fixes issue #334. 2009-12-27 13:05:05 +00:00
09c76314c6 Do not try to apply table specific characteristics like charset or engine to a view. 2009-12-23 08:32:01 +00:00
67352c624b Recreate instead of renaming a view when "Move to database" was selected. Fixes issue #1457. 2009-12-23 08:24:55 +00:00
c46a87338b Remove unused debug variable 2009-12-22 23:21:03 +00:00
e356cb7ed7 Sanitize all "uses" clauses from unneeded unit references. 2009-12-22 23:19:56 +00:00
1cfe855bae Fix uncheckable tree nodes when a database gets checked and tries to auto-check its children. Fixes issue #1552. 2009-12-22 13:31:50 +00:00
6fa9fdb397 Clear cached objects of modified databases after bulk editing, which can include a table moving. Fixes issue #1506. 2009-12-21 13:11:17 +00:00
7272ba3bc3 Remove handling of crashed tables - there is no difference to normal tables in the way we handle them. 2009-12-19 21:25:59 +00:00
35e8bbb304 Do not fetch database objects from information_schema, which has gotten extremely slow on servers with many databases and triggers, since we support triggers.
* Instead, use separate SHOW commands for tables, functions, procedures and triggers
* Catch this chance to move these methods from main unit to mysql_connection, so they're accessible in a more generic way
* Additionally, introduce new classes TDBObject and TDBObjectList which provide a more generic way than TMySQLQuery to access these database objects.
Fixes issue #1529
2009-12-19 11:40:28 +00:00
dfa981232c Ensure to check/uncheck uninitialized nodes on check-click. Fixes issue #1542. 2009-12-17 23:59:41 +00:00
e7bfd5d1ee Do not autofit "size" column in db tree while nodes get initialized. Implicitly calls OnGetText before text is available. Instead, resize that column only at OnChange time, without examining all possible widths. Just assume "1,023.0 KB" as the widest possible text. Should optimize performance for browsing in tree, and fixes issue #1503. 2009-12-16 00:30:47 +00:00
a3aae38d2e Do not add UTF-8 BOM headers to written files, they are not needed in most cases, and break other tools from reading them, e.g. mysqldump. See http://www.heidisql.com/forum.php?t=4622 2009-12-08 23:51:43 +00:00
680bbcf0ac Automatically remove AUTO_INCREMENT=x clause from CREATE TABLE statement for SQL export. Fixes issue #1110. 2009-11-30 22:42:08 +00:00
30b970c92b Implement bulk table editing in table tools dialog. Fixes issue #576 2009-11-28 19:51:57 +00:00
aa5063ca22 Auto create needed directories if they don't yet exist in directory mode of SQL export. Fixes issue #745. 2009-11-22 23:50:54 +00:00
e5113a4260 Fix unquoted enum and set values in SQL export. 2009-11-22 23:48:28 +00:00
c15b1e4b43 Add a second column to the checkbox tree to display sizes of tables, like it is in Mainform.DBtree 2009-11-21 07:45:25 +00:00
c667008483 Performance: Avoid one last empty and useless SELECT query 2009-11-19 20:11:30 +00:00
8fbc923828 Format numbers in result log in regional format 2009-11-19 19:51:36 +00:00
786c5becfd Remove design time caption from target items combo box, so the very first call of this dialog does not show "comboExportOutputTarget". 2009-11-19 19:31:12 +00:00
c0a9b63f98 Fix fetching binary field data. Fixes issue #1478 2009-11-18 23:59:52 +00:00