1444 Commits

Author SHA1 Message Date
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
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
9002a8d42d Text and Blob data types share the same FIELD_TYPE constants. Makes it necessary to adjust type detection logic. 2009-11-18 21:30:26 +00:00
3daa4dcf18 Finetune column header in log grid of table tools dialog: Allow column dragging, hot tracking and auto-resizing on doubleclick. 2009-11-18 21:08:05 +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
d2e5d1853b Fix another exception cause for issue #1462 2009-11-17 16:38:41 +00:00
83a8df4f64 Keep release version number also in builds, instead of x.y. Can help to identify the right version one is using and looks less ugly in all places. Fixes issue #1372. 2009-11-17 00:30:00 +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