2315 Commits

Author SHA1 Message Date
df6397abc7 Fix detection of VARCHAR columns as BLOBs on 4.0 servers. Workaround for shared type FIELD_TYPE_* constants should only apply to (TINY|MEDIUM|LONG)TEXT columns. Fixes issue #1588. 2010-01-11 22:24:25 +00:00
8abd2d0d76 Keep "Save" action enabled even if current query tab has no filename, so "Save" executes the "Save as" in such cases. Fixes issue #1590. 2010-01-11 21:58:19 +00:00
ef3501e9c1 Exit to avoid AV when query tab was closed and contents were saved. Fixes issue #1593. 2010-01-11 06:48:56 +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
51bd13b530 Remove unused image 2010-01-10 17:03:36 +00:00
1a4db545c5 Refactor layout and code of about dialog. 2010-01-10 16:22:53 +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
85bf9b1602 Remove non existent properties of SynMemoCompletionProposal. Fixes issue #1582 2010-01-08 13:48:27 +00:00
25ac096554 Make more use of Generics, this time for columns, keys and foreigne keys lists, used by main unit and table editor. Frees code from annoying casting and makes it more type safe. 2010-01-08 00:30:51 +00:00
35aa9c4dbf Make use of "Generics" provided by Delphi, to hold the list of tables, views etc. Easy to use and removes silly, redundant code. 2010-01-07 23:46:30 +00:00
fd516f8b0c Avoid trying to set focus on a disabled TEdit. Fixes issue #1574 2010-01-07 23:21:49 +00:00
c2883e0f3d Don't display quotes around default values for numeric columns, so it's more clear what the server will insert by default. 2010-01-07 23:04:55 +00:00
3610f0a73b Decide to return String instead of AnsiString in BinColAsHex(), to satisfy all callers without additional casting. Fixes some compiler warnings. 2010-01-07 22:57:43 +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
936ed6a67b Support TIFF images in "Image view" action. Requested via forum: http://www.heidisql.com/forum.php?t=4623 2010-01-07 18:36:40 +00:00
f690de4405 Fix half read binary files in "Insert files" dialog, now that SizeOf(Char) returns 2 instead of 1. 2010-01-07 18:35:37 +00:00
49b06f41b7 Safety check if PMYSQL handle is assigned in Ping() method. Tries to fix a sporadic access violation, unreproducible here but reported here: http://www.heidisql.com/forum.php?t=4694 2010-01-07 07:02:18 +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
0106ee3b4f Fix broken UTF8 export files 2010-01-06 00:50:17 +00:00
882a2b9995 Old unicode unit no longer compiles here. Anyway, the new Utf8ToWideString() seems to solve what issue #1328 says in the same way. 2010-01-06 00:24:09 +00:00
055d3df0dd Fix wrong directory path for madExceptCollection 2010-01-05 23:30:03 +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
bf22139798 Update VirtualTree component to r241 2010-01-03 21:44:17 +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
d8f2c9831d Enhance datagrid: Set focus on the previous selected row, or at least on row #0, so the user sees the grid has focus 2010-01-02 07:46:55 +00:00
b85ee7cb1f Fix compiler error in previous commit 2010-01-02 07:46:00 +00:00
9ec5a0c204 Fix detecting a mouse click on a tab close button. MouseUp is also fired without MouseDown if the focused tab switched between MouseDown and MouseUp - don't close tab in that case. Fixes issue #1469. 2010-01-01 11:36:32 +00:00
2eacbdb558 Suppress automatically calling the database editor dialog in case we lost the connection and user clicks a table in a non-selected db, which triggers the reconnection logic and a USE <old-newdb>. Fixes issue #1550. 2010-01-01 09:41:27 +00:00
f0f2036925 Avoid loading values from a privilege table with 0 rows. Fixes issue #1540. 2009-12-31 17:35:43 +00:00
dfe7515c93 Additional, official changes from the new SynEdit repository at SF: https://synedit.svn.sourceforge.net/svnroot/synedit 2009-12-31 15:48:38 +00:00
6b11615e83 Update SynEdit component to latest version from mh-nexus.de (September 28). Fixes issue #1122. 2009-12-31 15:39:08 +00:00
d82004c0cd popupQuery has grown quite large - move SQL function menu items into a submenu 2009-12-31 14:44:23 +00:00
9d28d5cb12 Tweak reformat SQL feature:
* Replace misleading icon with a nicer one
* Add menu item to main "Edit" menu
* Adjust the action so that any focused SynMemo can be processed - Fixes issue #1201
2009-12-31 14:28:10 +00:00
07ad990da9 Revert r2936, appendage of "approx." for InnoDB rows. Seems that annoys more users than it's worth. Fixes issue #1566, and unfixes issue #980. 2009-12-30 18:15:56 +00:00
e13c019022 Add underscore character to list of letters, to avoid separation of keywords like UNIX_TIMESTAMP 2009-12-30 09:20:35 +00:00
c61b2ead2e Implement SQL pretty formatter, fixes issue #428. 2009-12-30 01:23:44 +00:00
51cdaa9995 Some queries do not fail with mysql_real_query(), but later, after calling mysql_store_result(). Pass them to the application. Fixes issue #1563. 2009-12-27 23:32:52 +00:00
6c74af1ec8 Add a menu item "Reset sorting", to remove ORDER BY columns with one click / shortcut. Fixes issue #561. 2009-12-27 16:39:54 +00:00
04c8181ba5 Append "(approx.)" to row count of InnoDB tables, to indicate that it's an estimation by the server. Fixes issue #980. 2009-12-27 16:10:54 +00:00
b71414a386 Make Ctrl+A select all text in grid popup text editor. Fixes issue #1467. 2009-12-27 15:54:25 +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
c191b1b24e Minor: documentation 2009-12-27 13:00:34 +00:00
6836218cb2 Set eoAutoSizeMaxScrollWidth so SynEdit automatically calculates its maximum number of chars per line. Fixes issue #1438 in a better way than r2723 which just increased this maximum to 10k. 2009-12-27 07:16:05 +00:00
cfe95db339 Handle mouse wheel scrolling in any VirtualTree under mouse, without having focus. Fixes issue #447. 2009-12-27 07:06:29 +00:00