1456 Commits

Author SHA1 Message Date
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
30b970c92b Implement bulk table editing in table tools dialog. Fixes issue #576 2009-11-28 19:51:57 +00:00
a0fc5e2065 Readd code which I deleted in r2790 to achieve numbers without thousand separators in grids. A side effect was that FormatNumber(Float) still returned numbers with thousands. Avoid that, and let both int and float overloaded FormatNumber() functions pass their parameter to FormatNumber(string), and introduce a thousands parameter to be able to turn that off for grid numbers. 2009-11-25 23:17:08 +00:00
312f9cb67f Fix too short SQL query timer, used in query tabs: Also count network time consumed by mysql_store_result(), display that time separately. 2009-11-25 21:36:06 +00:00
e456764692 Fix forever staying message in status bar, for certain situations. 2009-11-25 21:05:06 +00:00
4852f229e5 Allow multiple SQL files loaded via OpenFile dialog. Load file 0 in active query memo and file 1 to n in new tabs. 2009-11-25 20:52:37 +00:00
9b9442f470 Fix mixed up logic in Mainform.OnCloseQuery: Save dialog popped up for only one modified query content, then the form was not closed. Plus: Wrong tab captions in such cases. 2009-11-25 20:39:39 +00:00
c1855c84e7 Missing changes for r2789 2009-11-25 20:35:21 +00:00
1c0af2316a Turn off adding regional thousand separators in grids again. 4 reports in one day tell me that users don't like that. Fixes issue #1484 2009-11-25 19:23:41 +00:00
53c4accde2 Remove two buttons from main toolbar (execute selection + execute line) which are not that necessary to have them there, seems enough to have them in the context menu. 2009-11-24 23:10:14 +00:00
6ebe40c929 Make INSERTs in user manager compatible with pre-4.1 servers by
* removing the ON DUPLICATE KEY clauses
* turning the INSERT into INSERT IGNORE
* and doing an UPDATE afterwards if RowsAffected is 0
Fixes issue #1229
2009-11-24 22:59:21 +00:00
44c0cfbfe8 Overtake comment of original table in "Create table copy". Fixes issue #1141. 2009-11-24 19:43:47 +00:00
0c83491ed5 Implement preference option to adjust tab width in SynMemos. Fixes issue #857. 2009-11-24 19:34:48 +00:00
e5771ad084 Do not add thousand separators to zerofilled numbers 2009-11-24 18:36:57 +00:00
3caf576eac Fix mixed up combo box item when generating LOAD DATA query. Fixes issue #1481 2009-11-24 18:11:43 +00:00
6b5c692d3b Fix formatted, signed floats with a thousands separator after the minus sign, e.g. "-,123,456.789" 2009-11-23 21:57:34 +00:00
cdb936b77d Consistently use FormatTimeNumber() also for formatting server uptime. Leave out the day portion if zero. 2009-11-23 21:24:25 +00:00
db3fbd0df7 Move timer stuff for server uptime and connection from main unit into connection layer. Both are seconds since start now. 2009-11-23 21:12:26 +00:00
79c5d04cfe Do not ping server in TMySQLConnection.GetActive, rather do that in a new Ping() function. TMySQLConnection.Active now returns true also in cases where the connection had timed out. Reconnection logic should work in such cases, only the connected timer gives the user a wrong info, which is cosmetic and unavoidable if we do not want to spam the server with keep-alive pings every second. 2009-11-23 20:27:27 +00:00
a1d0d0c0ec Prefer local formatting over raw numbers in grids:
* This time, also support formatted integers, not only floats.
* Do not quote both types in grid updates/deletes/inserts.
* Do no internal conversion from string to float and back to string (FloatToStr did that) to avoid silent data corruption. Just use strings in all places.
* Replace FloatStr() function with UnformatNumber(), which is also able to handle integers
Should fix issue #1012
2009-11-23 20:11:13 +00:00
50f0108864 Destroy dialogs early enough which implies one last access to main registry object, which would otherwise be free'd before these dialogs automatically get destroyed and cause an AV. 2009-11-22 23:58:51 +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
92bd620309 Introduce caching of collation table and table engines list in connection layer. Remove that stuff from main unit and automatically clear cached stuff on disconnection. 2009-11-22 23:42:39 +00:00
46c650eabd Remove dead code. 2009-11-22 18:20:52 +00:00
45fa64fe81 Wrap most queries in a try..except block which may fail with a SQL privilege error. So these places do not raise an exception at user level. Exceptions should only raise in unpredictable error situations. Important for reactivating the MadExcept dialog. 2009-11-22 18:07:53 +00:00
6491160c99 Remove progress form for "Insert files" dialog. Instead, use the universal progress bar on main form's status bar and integrate existing code into the dialog's unit. 2009-11-21 17:22:40 +00:00
d6367a09fa Code cosmetic in "Insert files" dialog:
* Make sure the INSERT query is fired within a try/except block, and keep form open on any error
* Reasonably rename some component names
* Remove InsertFilesWindow(), instead cache the instance of InsertFiles in main form, like it is for most other dialogs
* Get rid of a with .. do block
* Ger rid of a weird form pointer, instead use the "Owner" property
2009-11-21 16:44:31 +00:00
4b7ce24266 FServerVersionUntouched is a static variable, not a complex function, so it's very OK to call it several times 2009-11-21 14:57:01 +00:00
5326c9ace5 MySQL returns TEXT type for both SET and ENUM columns. Fix that by examining the field's flags. 2009-11-21 08:11:04 +00:00
21a4016d57 Readd the same workaround as in r1665, for binary collation in SHOW results (MySQL bug #10491). 2009-11-21 08:00:59 +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
f9c1913d07 BINARY_FLAG seems broken for fields of a utf8_bin table. Instead use the charset nr returned by a PMYSQL_FIELD. Fixes issue #1479 2009-11-20 17:38:34 +00:00
f192953c6b Treat + decode incoming data as Latin1 if Utf-8 charset is not available, e.g. on old 4.0 servers. Fixes issue #1466. 2009-11-19 21:12:57 +00:00