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
aaec4c991d
Reimplement server to server exporting in table tools dialog. This time without the need of having two windows open. Instead, all saved sessions are selectable via pulldown. While exporting we open a temporary connection to the target server - no problem with the new simple database layer. Fixes issue #1434 .
2009-11-18 20:42:49 +00:00
871ccab71c
Views have to be exported at the very end so importing such a file does not fail if a view points to a later created table. See issue #281 .
2009-11-17 00:15:38 +00:00
1984d426d6
Reorganize code in table tools so the code paths get slightly simpler:
...
* Move code from ProcessTableNode() into Execute()
* Consistently use one procedure per maintenance and find mode like it's already for export mode
2009-11-16 23:49:51 +00:00
d99f85c412
Fix error in logging current row number and calculating the progress percentage.
2009-11-16 19:40:38 +00:00
65923f1f6f
Fix fatal memory leak - selected table rows were never discarded while exporting SQL.
2009-11-16 19:33:46 +00:00
ef5fbe225a
Rewrite export to SQL dialog and code. Integrate that into the table tools dialog, let it use the nice checkbox tree and make exporting lighting fast.
...
* Fixes issue #886 (broken CREATE TABLE)
* Fixes issue #608 (full backup)
* Fixes issue #281 (export views)
* Fixes issue #307 (header in directory mode)
2009-11-16 01:24:49 +00:00
e6eb2e529a
Auto scroll to first checked db or table node in table tools dialog, so it's visible immediately.
2009-11-12 22:37:57 +00:00
12a8e2ebc5
Implement a more lightweight connection layer, consisting of 2 units in source directory. Breaks threading and window to window communication, which should be reimplemented later.
2009-10-28 00:08:49 +00:00
0790c125f4
Only check selected table node(s) in table tools tree, if table(s) were right clicked. Check db node if that db was right clicked. Fixes issue #1362 .
2009-10-17 11:17:59 +00:00
3209cd9d8b
Minor: missing changes for previous commit. In-memory changes were not saved yet.
2009-09-17 23:05:41 +00:00
60beacc049
Implement a second tab on the table tools dialog: "Find text on server". Scans all tables with OR'd LIKE clauses for a given text. User can restrict that search to a data type category (integer, text, etc.). Fixes issue #529 .
2009-09-17 23:00:29 +00:00
e764c41867
Fix disabled "CHANGED" option for CHECK TABLE operation
2009-09-15 18:50:02 +00:00
86031234ac
When a db node gets checked, its not yet initialized children are unchecked - fix that.
2009-09-15 18:47:27 +00:00
ab3cf3c586
Bugfix: When both QUICK and EXTENDED options were checked in CHECK mode, a switch to CHECKSUM mode didn't uncheck one of the options like it's needed, as they're mutually exclusive for CHECKSUM.
2009-09-15 18:28:44 +00:00
31e52f4df1
When a db node in the table tools tree has "mixed" state and it contains unaddressable stored routines, it is impossible to change the db node's check state. Fix that by removing checkboxes for stored routines.
2009-09-15 18:20:55 +00:00
6e66726e79
Fix "List index out of bounds", when the table tools dialog is called the second time, and some databases were deleted or filtered.
2009-09-15 17:57:04 +00:00
658aab45c6
Temporary workaround to make the maintenance results work on servers with the notorious binary collation bug. How to add a workaround without breaking Unicode results here??
2009-09-14 20:39:36 +00:00