1489 Commits

Author SHA1 Message Date
1f1e771fa6 Make views show their data again in data tab. Fixes issue #1515. 2009-12-09 21:08:38 +00:00
4d7ed2303c Gracefully be case insensitive in GetDatatypeByName() so we can also pass lower case strings. 2009-12-09 21:05:39 +00:00
eefdbec81c Render primary key columns in query results in bold font, like in data grid. 2009-12-09 20:03:46 +00:00
f03af60357 Throw away one regular expression logic for detecting table columns, we have a simpler way to do that since r2821 2009-12-09 19:26:35 +00:00
f5abfe559f Set default position of session manager to current screen center, not desktop center which can be spanned over 2 screens so the dialog appears half on the left and half on the right one. See issue #1511. 2009-12-09 18:21:52 +00:00
1de8e6344b Fix SQL error in table editor on MySQL below 4.0.18: Use TYPE instead of ENGINE in these cases. Fixes issue #1517 2009-12-09 18:12:45 +00:00
a24c2bb847 Fix Unicode issue on main tabs: databases and tables with international characters were broken on tab captions. This just converts the main TPageControl to a TTntPageControl, plus its TTabSheets to TTntTabSheets. 2009-12-09 00:13:55 +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
1c69941f11 SELECT GROUP_CONCAT() does return binary collation also in the latest server versions, that was not fixed in 5.0.46. Extend the workaround with PMYSQL_FIELD.org_table to all versions above 4.1. Fixes issue #1514. 2009-12-08 18:05:48 +00:00
3ca479dd39 Trigger auto completer on @@SESSION and @@GLOBAL to display variables. Fixes issue #1513. 2009-12-08 13:58:36 +00:00
0e29eda7ac Add preference option to use locale number format for CSV+XML+HTML exports. Mainly to work around an Excel bug, which expects float values to be formatted with locale decimal separator when pasting. Fixes issue #1459. 2009-12-08 09:14:42 +00:00
bd4dd71797 Remember state of "Stop on errors in batch mode" button/action. Fixes issue #1128. 2009-12-07 20:13:52 +00:00
7a8477c57f VirtualStringTree.InsertNode internally calls .DoCancelEdit, which is not what we want when the user clicks the "Add column" button while editing another column. Instead, explicitly call .EndEditNode before .InsertNode. Fixes issue #1508. 2009-12-07 20:00:35 +00:00
ce1da97120 Center session manager dialog on screen instead of main form, so it's never off screen. Fixes issue #1511. 2009-12-07 18:31:30 +00:00
400f4dd040 Indicate "No default" for a column in table editor. Fixes issue #1510. 2009-12-06 20:12:21 +00:00
a89977ab6a Try successive regular expression executions instead of only the first one on a "table clause" before giving up. Hacks around special case "INSERT INTO foo SELECT t. FROM foo f". Fixes issue #1311. 2009-12-06 17:44:51 +00:00
d3ff85b730 Fix detection of previous token in query memo's. SynCompletionProposal.OnExecute passes x + y coordinates of current caret position - these are pixel values, while we expected them to be character + line numbers. 2009-12-06 17:12:56 +00:00
0218e3b754 Fix empty enum pulldown in datagrid. Broken in r2821. 2009-12-05 21:46:25 +00:00
566ac4a581 Destroy AllDatabases list *after* collapsing database tree, when a session connect is in progress. Hopefully fixes issue #1491. 2009-12-05 19:57:44 +00:00
44cedeed4e Try a 99% work around for binary contents of function results: Check if a field is a function result on servers below 5.0.46, if yes, detect it as text type rather than binary. If it's a real table column, leave detection logic as is (Field.charsetnr = COLLATION_BINARY). This surely returns evil text type for SELECT LEFT(binaryfield, 5), but that seems to be a rare situation so that's the compromise here. Fixes issue #725. 2009-12-05 18:12:47 +00:00
a4e8637bdc Implement snippet generator for INSERT, UPDATE and DELETE statement using selected table. Clickable via query helpers columns tab, which then only involves selected column names. Fixes issue #1288. 2009-12-05 17:46:40 +00:00
de45bdd24a Fix a follow up error of previous commit - need to call CharsetTable.First now. 2009-12-05 16:54:43 +00:00
37f83b6af8 Fix offset in charset table, always set to 0. See http://www.heidisql.com/forum.php?t=4638 2009-12-05 16:03:07 +00:00
4b01d83ed7 My IDE insists on camel case for this component class name. 2009-12-04 21:44:00 +00:00
94df12fa1f Enable auto scrolling in data- and query grid(s) when mouse is used to select rows. Fixes issue #849. 2009-12-04 21:37:01 +00:00
c75df83cfc Work around internal Delphi problem, complaining about a "unsupported 16bit resource file" when loading this file. 2009-12-04 21:27:43 +00:00
43fe695bc1 Make SHOW KEYS FROM <selected-table> and SHOW COLUMNS FROM <selected-table> superfluous. To achieve that, move parser for SHOW CREATE TABLE string from table editor to helpers unit, where it can be called by everyone. For consistency reasons the index list in table editor is converted from a TWideStringList to a TObjectList, like both table and foreign key list. However, that results in a large diff here. 2009-12-04 21:20:06 +00:00
f8d88f31d7 Right align text in size column, like it's in DBtree 2009-12-01 15:15:40 +00:00
ffe782b157 Now that the table tools dialog also has a second tree column "size", it should get autofitted the same way as mainform.dbtree. Fixes issue #1500. 2009-12-01 15:12:28 +00:00
14ff384039 Avoid accessing grid data array elements over its bounds in Datagrid.OnBeforeCellPaint, while painting NULL cell background. Can happen as RootNodeCount is set asynchronously to scrolling. Fixes issue #1497 and friends. 2009-12-01 13:16:43 +00:00
96f0478cb0 Increase length of displayed/loaded query in processlist by factor 10, so it's more helpful than 1 kb of SQL, but still low enough to avoid a huge memory load. Fixes issue #1498. 2009-12-01 10:45:35 +00:00
a9ab1a1c6d Fix documentation 2009-12-01 00:32:49 +00:00
1e0f6444b8 Enhance readability of sorted columns in high contrast mode (white text on black background). Check brightness and decide for a brighter or darker background color as needed. See issue #1366. 2009-12-01 00:17:21 +00:00
7fed732f40 Tabs popup menu should only activate when clicked on the tabs area. Fixes issue #1456 2009-11-30 23:19:25 +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
cc028cee30 Fix sporadic access violation when a new row was inserted and UPDATE or INSERT gets posted. Fixes issue #1496 2009-11-30 20:58:31 +00:00
84f7663887 Make SQL help dialog modeless, so it can stay open while the user returns to its query or whatever. A later F1 pressing again searches the right help item. Fixes issue #971. 2009-11-30 00:52:02 +00:00
278dbfa80d Same as previous commit, this time for the about dialog. 2009-11-29 21:22:04 +00:00
f465ee6086 Fix wrong color in mainform's font property. Broken since r1 (!). Fixes issue #1366. 2009-11-29 21:19:36 +00:00
115148fd23 Move a "continue" for deleted privs slightly lower, so these get deleted. Fixes issue #1454 2009-11-29 20:03:11 +00:00
a80e9cb91d Fix point where last (successful connected) session name is saved to registry. The session manager is not the only place where Mainform.InitConnection is called. 2009-11-29 17:59:26 +00:00
627b4690ec Minimize memory usage and optimize performance in process list tab when large (INSERT) queries are running, by fetching only the first KB of the "Info" column. Fixes issue #345. 2009-11-29 17:31:03 +00:00
d8d82e3e72 Move caching of information_schema objects into database connection unit. Simplifies code when accessing them. 2009-11-29 15:50:51 +00:00
1995e2e820 Try to fix sporadic access violation when destroying a non-results-query. Unlikely but probably fixes issue #1494 . 2009-11-29 11:51:29 +00:00
1b1a2c2edc No need to center selected node vertically normally. Should make selecting the next node after deletions in datagrid nicer. See issue #1471. 2009-11-29 00:21:00 +00:00
8ac6fbd15c There is no 64 bit unsigned integer type in Delphi, but MySQL has it: bigint unsigned. Handle these as strings in the table editor. Fixes issue #1489. 2009-11-29 00:18:20 +00:00
59da2e193a Enhance visibility of size numbers in dbtree - use clWindow also for databases, and a darker grey for tables. Should fix issue #1492 2009-11-28 23:26:51 +00:00
ef282ed7f0 Remove unused variable and silence compiler notice. 2009-11-28 23:17:50 +00:00
1dc71c845d Set focus to next available node after deleting one or more rows in datagrid. Fixes issue #1471 2009-11-28 23:13:35 +00:00
5f9a62de94 Use cached result of SHOW CHARSET in one more place. 2009-11-28 21:39:15 +00:00