2309 Commits

Author SHA1 Message Date
fb20c8e75f Fix offset portion in LIMIT clause, at least for MySQL. 2011-03-30 05:37:52 +00:00
a6d2271988 Avoid accessing connection object if not available, to fix an access violation in session manager when pressing "new". See http://www.heidisql.com/forum.php?t=8064 2011-03-30 05:22:39 +00:00
4fbf2c23dd Introduce experimental MS SQL support 2011-03-29 23:20:21 +00:00
7022bf3fcd Remove unused forward declaration. 2011-03-18 06:49:51 +00:00
a9f1f076b0 Fix two minor compiler warnings. 2011-03-17 23:07:02 +00:00
49a97584e6 Code preparation for non-MySQL connections: Extract abstract stuff into a new TDBConnection class, and let TMySQLConnection derive from that. Same with TDBQuery / TMySQLQuery. See issue #1008. 2011-03-17 23:03:54 +00:00
24adc029b2 Ensure we fetch all available database names without passing a custom list, in session managers database selector. 2011-03-14 19:27:00 +00:00
5f573619c4 mysql_ssl_set() always returns 0. No need to check if it does not. 2011-03-14 06:46:50 +00:00
2a3466598b Remove duplicated database names from user passed list. Fixes issue #2322. 2011-03-13 22:35:18 +00:00
56595d6df6 Let the session manager benefit from the additional fall back in TMySQLConnection.GetAllDatabases(), if SHOW DATABASES fails when db pulldown is triggered. 2011-03-13 22:24:19 +00:00
3c0da9de03 Make search input find matching items case sensitively. Fixes issue #2343. 2011-03-13 19:04:38 +00:00
a44e2308db Enhance quick filter menu items: Support cell values from multiple selected rows. Fixes issue #2341. 2011-03-12 14:11:20 +00:00
d84e75ace0 Allow passing only CA certificate for SSL connections. Fixes issue #2336. 2011-03-12 08:59:53 +00:00
ba8a93bbd9 Set toGhostedIfUnfocused property in table tools' object tree - feels annoying to switch between ghosted and normal when tree is focused and unfocused. 2011-03-10 20:16:41 +00:00
6572de2f3b Display sum of all checked objects in lower left label of table tools dialog. 2011-03-10 20:13:58 +00:00
3e0bd65315 Fall back to select database name from information_schema.schemata table, if SHOW DATABASES fails. Fixes issue #1485. 2011-03-10 18:42:53 +00:00
712369bb89 Remove unused function mappings. 2011-03-09 21:20:08 +00:00
9451680e2e Silence privilege error when user is not allowed to fire SHOW DATABASES. See issue #1485. 2011-03-09 20:20:33 +00:00
94f31b30b1 Fix detection of table name for editing joined tables, causing UPDATEs on the wrong table. This still leaves that problem for situations where tables are joined with a view. Fixes issue #2335. 2011-03-08 23:08:23 +00:00
a5fe0f74d5 Undo previous commit - caused ping for each parsed column, which was a performance issue. Do a manual .First instead. 2011-03-03 21:42:33 +00:00
e088db535f Fix undetected column collation, caused by non rewound collations list. See http://www.heidisql.com/forum.php?t=7893. 2011-03-03 21:35:57 +00:00
45d4bcc5f7 Try to fix AV on tab closing, this time by avoiding calls to TControl.ClientToScreen respectively ScreenToClient, which I both suspect to be buggy. Fixes issue #1935. 2011-03-03 20:25:16 +00:00
34c1969f5f Fix wrong "0 %" display when table has 0 rows. 2011-03-03 19:44:28 +00:00
afc9f490c1 Display nothing instead of "-1" for processed rows in case of non-tables. See http://www.heidisql.com/forum.php?t=7895 2011-03-03 19:40:31 +00:00
972aa9e4d2 Display the real row count at the end of exporting table data, using an internal counter, to enhance accuracy. See http://www.heidisql.com/forum.php?t=7895 2011-03-03 19:21:35 +00:00
30e0a03c2d Wait for threaded user queries to finish before proceeding, in TMySQLConnection.Query(). Should fix the problem with parallel queries, described in issue #1509. 2011-03-02 07:54:42 +00:00
6cd32759e3 Query threads are set to FreeOnTerminate, so there is no need to free them manually. Fixes an access violation. 2011-03-01 23:10:54 +00:00
922eca3080 Code cosmetic - avoid calling Exit when we have the chance to jump to Except instead. 2011-03-01 22:39:09 +00:00
294061030e Now that user queries do not block the GUI, you can switch to another main tab. Add some safety code when detecting the right tab for a thread. 2011-03-01 22:35:46 +00:00
4d90a5901e Implement threaded execution of user queries, using a TThread descendant class. Fixes the most starred issue #1509. However, later clicks which fire some parallel query are a problem now, as the server kills the connection when you do that. In some cases there should popup the "Commands out of sync" error. 2011-03-01 22:32:55 +00:00
06d7a97798 Handle multiple queries in table editor's apply action. This way, special queries for edited foreign keys and dropping defaults are revealed in the "ALTER code" tab. Moved from ApplyModifications. 2011-02-19 08:22:17 +00:00
b50659135c Again, move code for loading libmysql.dll - the right place is now the connection object itself, which loads the library on demand, in SetActive(). This enables the application to start independently of an existent library, raising an error when pressing the connect button. Also, this is a first step towards multi-dbms. 2011-02-17 00:26:53 +00:00
de7ba86e23 Revert r3695 and raise a usable error message much earlier, short after mysql_api.pas has assigned procedures from libmysql.dll . Also, remove procedure names which are no longer present in the current lib. 2011-02-16 21:40:20 +00:00
06ae6b9c8c Drop default column value if user selects "No default". Fixes issue #2311. 2011-02-16 19:46:03 +00:00
72f71bd845 Add a usable error message to the EAccessViolation which pops up when no libmysql.dll is found in the current directory. 2011-02-15 23:37:34 +00:00
669bab9095 Find a nicer "problem" overlay icon for users with an empty password. 2011-02-15 23:25:52 +00:00
d5f47f4103 Downgrade priority of charset information in log panel, which is now a debug message. 2011-02-15 23:15:29 +00:00
2911e9802c Be more exact in regexp from within ParseTableStructure(), to avoid stack overflow in TRegExpr object. Fixes issue #2309. 2011-02-15 23:11:27 +00:00
de2767711d Flush privileges after user has been dropped. 2011-02-14 09:30:47 +00:00
4bef2d7412 Raise readable connection error when SSL settings are incomplete. Were silently ignored before, so the user didn't knew if SSL is being used. See http://www.heidisql.com/forum.php?t=7739 2011-02-09 23:51:41 +00:00
216f097d9c Servers up to 5.0.6 do not support the object type in a GRANT or REVOKE query. See http://www.heidisql.com/forum.php?t=7753 2011-02-09 23:22:48 +00:00
d539284477 Fix crash when there is no ActiveConnection. See http://www.heidisql.com/forum.php?t=7749 2011-02-09 09:27:38 +00:00
8d9539e10f Indicate SSL enabled connection, via lock icon in status bar, logging line at connection time, and line in connection info popup. See http://www.heidisql.com/forum.php?t=7739 2011-02-09 07:07:44 +00:00
2f12b65fe9 Use image on close button, like the other buttons already do. 2011-02-09 06:54:28 +00:00
0f2db295a6 Fix top aligned, 2-line label, should be centered vertically. 2011-02-09 06:51:14 +00:00
adab28c336 Avoid exception when starting cell editor for a cell which is partly out of sight horizontally. VT calls ScrollIntoView in .DoEdit, and fires the OnScroll event, which tells MainForm to end editing. Ends up in the OnNewText procedure which has no node to handle in that case. So, only end editing for vertical scrolling for now. 2011-02-08 22:52:27 +00:00
deb0c1afbf User manager: Turn custom object editors into one single editor for a wildcard database. Enhances what r3681 did for issue #2299. 2011-02-08 22:11:43 +00:00
9e8ddad470 User manager: Allow applying dbs with wildcards via custom input text, while escaping mouse-selected objects from tree. Fixes issue #2299. 2011-02-08 00:11:33 +00:00
17baa6bf03 Let QueryLoad() create a new query tab if required, so the caller is not responsible to close it in cases where the file is directly executed, not loaded. Also, check if some existing query tab is empty and can be used for the file. Fixes a part of issue #2265. 2011-02-06 14:16:09 +00:00
08513f1d88 Improve user manager: Include inactive users in users list and disable these nodes. Just to make clear they exist, and the user should fix them manually. 2011-02-05 07:23:43 +00:00