Commit Graph

1381 Commits

Author SHA1 Message Date
Ansgar Becker
8f12ca9400 Again, try to fix issue #1450 2009-11-11 19:47:07 +00:00
Ansgar Becker
c835402544 Try a performance optimization: avoid calling mysql_data_seek() in SetRecNo() if not needed - mysql_fetch_row() already does it well enough for successive browsing through records. Only noticable on large results like it's the case when exporting or grid filling. 2009-11-11 19:29:48 +00:00
Ansgar Becker
f27306899f Avoid setting VT.OffsetXY between VT.Header.Columns.Begin/EndUpdate. Hopefully fixes issue #997. 2009-11-10 23:37:29 +00:00
Ansgar Becker
9092175cc9 Try to fix a "unknown error" when canceling the session manager. Hopefully fixes issue #1450. 2009-11-10 22:56:36 +00:00
Ansgar Becker
8aafc3980f Keep memo with revision logs enabled, even if local executable is up-to-date. Can be useful for reading the changelog at any point. Fixes issue #1452 2009-11-10 22:37:03 +00:00
Ansgar Becker
5dfb5a9f45 Fix logic in rename database logic: Check for unmovable routines was not done if target db did not exist. Probably related to issue #1457. 2009-11-10 19:59:40 +00:00
Ansgar Becker
88d328aabc Enable multi statements by default for db connection. Fixes issue #274 (again) 2009-11-09 21:58:55 +00:00
Ansgar Becker
88d7adffad Do not auto initialize all previously initialized (but unselected) database nodes in dbtree. Very useless and time consuming. Instead, collapse all db nodes at that point. Also, this removes one weird effect when switching from server A to server B, when B as initialized db nodes with same names as on A. Also, this should remove an AV mentioned in issue #1428. 2009-11-08 19:23:44 +00:00
Ansgar Becker
b320caef17 Remove dead code 2009-11-08 16:17:12 +00:00
Ansgar Becker
e1a9bb0281 Add support for sql_mode=ANSI_QUOTES in table editor. 2009-11-06 21:59:33 +00:00
Ansgar Becker
809edef3d4 Remove unused variable and fix compiler notice 2009-11-06 21:52:04 +00:00
Ansgar Becker
7f0bdf9e14 Fix duplicated message box asking if modified session parameters shall be saved when clicking "Open" button 2009-11-06 21:34:39 +00:00
Ansgar Becker
362a9fe1fe Ensure we display a message dialog when the user tries an UPDATE, DELETE or INSERT in datagrid and he is not allowed to do that. Could be there are more places like this, f.x. when saving table structure. 2009-11-06 00:04:26 +00:00
Ansgar Becker
0a53443524 Extend maximum editable line characters to 10k in all SynMemos. Fixes issue #1438. 2009-11-05 21:17:30 +00:00
Ansgar Becker
1ec9b97f0a Handle connection error exceptions on startup. Fixes issue #1440 2009-11-05 21:01:25 +00:00
Ansgar Becker
caec005625 Don't disable the build download button if using a developer build, or if we at some point, accidentally have an "M" in the current revision. 2009-11-05 00:22:47 +00:00
Ansgar Becker
f6a4748081 WinExec() is deprecated in Vista and Windows 7, even in WinXP it was only kept for compatibility to 16 bit applications. Replace these 3 calls with ShellExecute(). Fixes issue #1406. 2009-11-05 00:20:27 +00:00
Ansgar Becker
a93a17e2c5 When clearing a query tab editor, the tab's filename is removed. Also the internal filename has to be removed and the memo's modified flag. 2009-11-04 23:49:58 +00:00
Ansgar Becker
711a5fdecc Try to fix issue #1428 2009-11-04 23:26:02 +00:00
Ansgar Becker
2eca25daa0 Remove a no longer needed workaround for usage of TWideStringlist's - was a naming collision somewhere. 2009-11-04 21:49:35 +00:00
Ansgar Becker
d398ee313a Revert unrelated changes from previous commit. 2009-11-04 00:09:55 +00:00
Ansgar Becker
7d05c250b7 Set correct offset in cached tables list when calculating table sizes. Fixes issue #1432. 2009-11-04 00:06:04 +00:00
Ansgar Becker
6eb0e8a226 After a DROP DATABASE the database node was kept in dbtree. Also, if the db did not exist while dropping, that lead to weird effects in FetchDbTableList(). Fixes issue #1431. 2009-11-03 23:58:55 +00:00
Ansgar Becker
c560d5a37e Do not clone collation when adding a new column. Better use the table's default collation. Fixes issue #1429. 2009-11-03 19:38:28 +00:00
Ansgar Becker
1fd9f8c6d8 parsesql() is clever enough not to return empty queries, no need to check that a second time. 2009-11-02 23:29:55 +00:00
Ansgar Becker
25cb046c55 Fix exception after firing a "USE db" in the query editor and the database cannot be found in the dbtree 2009-11-02 23:21:03 +00:00
Ansgar Becker
45f12594e9 mysql_store_result() + mysql_free_result() are needed for all result queries, in order to unblock the connection. Fixes disconnecting + reconnect in query editor with multiple SELECT queries. 2009-11-02 23:16:38 +00:00
Ansgar Becker
fbe813f88e Implement query timer in connection layer. 2009-11-02 20:26:01 +00:00
Ansgar Becker
8d62f13e1b Refactor ExecSQLClick(), reasonable fill result label 2009-11-02 20:16:38 +00:00
Ansgar Becker
cb029ec200 Leave grid editor when main tab changes away from data. Fixes issue #1426. 2009-11-01 12:10:07 +00:00
Ansgar Becker
74d6dcee28 Reset filter text between queries if filter panel was disabled. Fixes issue #1415. 2009-10-31 17:25:11 +00:00
Ansgar Becker
48fe31634d Ensure snippets directory exists before saving a snippet. Important for the portable version which doesn't have an installer to create the directory. Fixes issue #1386. 2009-10-31 17:04:50 +00:00
Ansgar Becker
4b4040ef3a Fix line number offset in SQL log after clearing its content. 2009-10-31 16:24:07 +00:00
Ansgar Becker
9aebe487dc Remove dead code 2009-10-30 18:51:45 +00:00
Ansgar Becker
d2a6f27fba Reimplement readable error messages for InnoDB's cryptic messages, as in r2593. Broken in r2678. 2009-10-30 16:46:59 +00:00
Ansgar Becker
f3ff47313c TStringList.CommaText seems to interprete spaces also as comma. Messes foreign key columns if one of them has spaces. Fix that by using Explode() and ImplodeStr(). 2009-10-30 16:36:24 +00:00
Ansgar Becker
17648df114 Add missing comma at first exported cell. Fixes issue #1422 2009-10-30 07:16:03 +00:00
Ansgar Becker
cb1b7b0c21 Silence exception on old servers for users which don't have access to information_schema, where MySQL should say "Unknown database". Fixes issue #1421. 2009-10-29 22:18:26 +00:00
Ansgar Becker
e3feb56242 Include date + time in disconnect log message. 2009-10-29 21:54:56 +00:00
Ansgar Becker
41e043e5ed Optimization: Try to call SynEdit's long running InitializeKeywordLists() once instead of once per table. 2009-10-29 01:01:59 +00:00
Ansgar Becker
b378aa7af3 Fix fatal error in "Copy table" dialog. Column names are handled case sensitive now. 2009-10-29 00:52:31 +00:00
Ansgar Becker
25553f12cb Fix loop variable, so the resulting array gets filled completely. Fixes issue #1416. 2009-10-29 00:46:24 +00:00
Ansgar Becker
ef0cc6b5b7 Fix access violations on old servers, fixes issue #1417:
a) On a 4.0 server, mysql_real_query("SHOW TABLES FROM nonexistant_db") returns 0/OK . A 5.x server returns 1. On 4.0 servers mysql_num_rows() then causes an access violation. So, we now gracefully avoid calling it when mysql_store_result() returned nil.
b) Various hardcoded queries like SHOW ENGINES need to be quiet in any error case.
2009-10-29 00:40:31 +00:00
Ansgar Becker
8354c106ca Try to fix broken characters in SHOW CREATE TABLE result by using UTF8StringToWideString(). Fixes issue #1328. 2009-10-28 01:16:29 +00:00
Ansgar Becker
aa6e1702fb Add Delphi Fundamentals Unicode library (untouched) 2009-10-28 00:43:33 +00:00
Ansgar Becker
e2674cadb8 Remove no longer used Zeos packages and related stuff 2009-10-28 00:34:52 +00:00
Ansgar Becker
589c6a76a6 Missing file for previous commit 2009-10-28 00:11:23 +00:00
Ansgar Becker
12a8e2ebc5 Implement a more lightweight connection layer, consisting of 2 units in source directory. Breaks threading and window to window communication, which should be reimplemented later. 2009-10-28 00:08:49 +00:00
Ansgar Becker
82c717870d About dialog: first tab with authors should be selected by default 2009-10-21 19:54:06 +00:00
Ansgar Becker
dd6759d680 Bugfix: Dragged nodes were deleted in table editor's column list and index tree. 2009-10-20 11:26:03 +00:00