9e880365ac
Closing a query tab when data tab is open leads to passing page index -1. Avoid AVs in that case. See http://www.heidisql.com/forum.php?t=7038
2010-11-26 07:06:45 +00:00
b1effc6ce6
Enable filter input when table editor is active, for the column list. See http://www.heidisql.com/forum.php?t=6988
2010-11-25 07:25:48 +00:00
ffb99d8962
Add right click option to toggle visibility of horizontal scrollbar in SQL log. http://www.heidisql.com/forum.php?t=6984
2010-11-24 23:39:22 +00:00
6f95a796e1
Modify identifier quoting logic:
...
- Move QuoteIdent() and DeQuoteIdent() out of TMySQLConnection, make them classless
- Remove TMainForm.mask(), instead always use QuoteIdent()
- Introduce a third parameter to QuoteIdent(): "AlwaysQuote" - setting this to false will quote only if required
- Set AlwaysQuote to false for all stuff which drops some code into the query editor, see http://www.heidisql.com/forum.php?t=6986
2010-11-24 23:12:13 +00:00
c0ded109b5
User manager form is kept in memory after closing. Later calls need to check the current server version to display the right list of priv names. So, move creation of these lists from Form.OnCreate to Form.OnShow.
2010-11-21 23:21:58 +00:00
a2e20b08f1
Use CREATE USER query for added users, as required since 5.0.2 servers when password is empty. Works around SQL error 1133 (Can't find any matching row in the user table). See http://www.heidisql.com/forum.php?t=6948
2010-11-21 19:21:16 +00:00
fbefabe146
Fix stack overflow in object comparer when deleting triggers. See http://www.heidisql.com/forum.php?t=6915
2010-11-21 09:35:36 +00:00
ae32d4d91e
Fix wrong error message text and indentation.
2010-11-20 09:07:11 +00:00
08cdd86c9d
Fetch real compile datetime for about box, by examining PE header, not last file modification. Code taken from http://www.michael-puff.de/Programmierung/Delphi/Code-Snippets/GetImageLinkTimeStamp.shtml
2010-11-20 09:05:46 +00:00
7d3446d346
Sort accessible objects by relevance (global > db > table) + alphabetically
2010-11-16 19:40:31 +00:00
c2e984c4b7
Do not try to remove non applied privileges after unchecking priv names.
2010-11-16 19:09:00 +00:00
e01b7035fc
Set focus on connection root after dropping tables so there is a focused node when firing later queries. Fixes issue #2224 .
2010-11-14 23:16:08 +00:00
23da40e86e
Add safety check for availability of query profiling feature, also on server versions which should normally have it. Fixes issue #2229 .
2010-11-13 23:11:48 +00:00
98300c9bd5
Make SET cell editor resizable, and store and restore its dimensions. Fixes issue #2212 .
2010-11-13 21:16:36 +00:00
a8ce8cd7fa
Export output file may be in use by another application. Catch such exceptions and stop the whole export loop. See http://www.heidisql.com/forum.php?t=6850
2010-11-13 20:37:46 +00:00
910975aa40
Ensure SQL list has the same number of items as result list has, to avoid AVs when SELECT returned an error. See http://www.heidisql.com/forum.php?t=6824
2010-11-13 20:20:19 +00:00
3339b641ff
Specify utf-8 charset via meta tag. Although the file itself already has utf-8 encoding, some web browsers may not be able to detect this the right way. Fixes issue #2231 .
2010-11-13 18:22:06 +00:00
55452f60cc
Forgot to add REFERENCES to list of write privs
2010-11-11 13:16:36 +00:00
d98a0e826d
Although the REFERENCES privilege is unused by MySQL, the user manager needs to revoke it, for users which have it assigned in some unwanted privilege object.
2010-11-11 13:05:44 +00:00
8bdbed7100
Clean up datagrid context menu "Insert date/time":
...
- remove timestamp (not Unix Timestamp) item, relevant on super old servers only
- add GUID item. Fixes issue #2206 .
- prefix all items with descriptive captions
2010-11-11 08:10:30 +00:00
9e4344a6ab
Fix previous commit, which caused an AV on startup, as long as no tab was set.
2010-11-11 06:50:52 +00:00
8674ce7610
Try to fix unset main tab on Wine. Most likely happened when activating a hidden tab. Fixes issue #2227 .
2010-11-11 06:46:26 +00:00
b6f7c17ac1
Rewrite code behind user manager dialog:
...
- Use GRANT + REVOKE queries as recommended by MySQL.
- Fixes various wrong INSERTs/UPDATEs which were intended to normalize structure in mysql db.
- Remove features: max query count per hour/day/...
- Enables user to assign stored routine privileges now, see http://www.heidisql.com/forum.php?t=6684
- Add "Clone user" button, fixes issue #1316
- Add "Repeat password" edit box, fixes issue #1461
- Paint privilege text in different colors for read/write/admin commands.
2010-11-10 21:15:54 +00:00
d7cb1f3386
Safely ignore checked "Query profile" node on old servers. Fixes issue #2228 .
2010-11-09 22:25:39 +00:00
e7e666096f
Right click on query tab starts doubleclick timer when context menu closes. So, right click + left click is detected as double click and closes the selected query tab. Fixed hereby by ignoring right clicks. See http://www.heidisql.com/forum.php?t=6803
2010-11-09 21:51:10 +00:00
a92ddb7387
Main tabs get activated in an unpredictable way when hiding some of them. In order to avoid unwanted fetching row stuff, hide tabs later, after activating the wanted one. Fixes firing SELECT from an empty table name (Incorrect table name ''). See http://www.heidisql.com/forum.php?t=6646
2010-10-31 22:04:49 +00:00
a19e85a9e2
Implement TObjectList comparer which orders items in a way that dropping them does not trap in SQL errors. Also, avoid errors due to foreign key checks. Fixes issue #2193 . See also http://www.heidisql.com/forum.php?t=6322
2010-10-31 14:32:06 +00:00
d84d0c1ea0
Process tables and views only in "Empty tables" action, ignore routines etc. Fixes issue #2190 .
2010-10-26 19:40:58 +00:00
0de7a50216
Add buttons for moving routine parameters up and down, on routine editor
2010-10-26 19:08:16 +00:00
9a3211466a
Fix detection of focused db object for usage in copy table dialog. Could happen that a trigger with the same name of the wanted table was taken, instead of the table.
2010-10-26 18:47:59 +00:00
32c63790c3
Increase minimum width of icon column so upper numbers are not cut away.
2010-10-26 18:34:08 +00:00
e2cc3482c0
Paint one icon per index in a column editor row, not only for the first key. Fixes issue #2211 .
2010-10-25 23:29:17 +00:00
1dc0ed5067
Set caret to location of erroneous SQL after execution. Fixes issue #668 .
2010-10-25 06:25:05 +00:00
be3e393534
Add "case sensitive" checkbox to "Find text on server" dialog. Fixes issue #2199 .
2010-10-23 07:07:55 +00:00
c3d14f914a
Remove "R" hotkey from "Routine body" label, so the pulldown grid editor in the parameter list is not unfocused when pressing "R". Fixes issue #2214 .
2010-10-21 22:19:16 +00:00
2d015bc75a
Fix EStringListError when disconnecting from a server with many databases, having the ListDatabases open, and switching to a server with less databases. See http://www.heidisql.com/forum.php?t=6594
2010-10-21 22:01:41 +00:00
9d96d5371d
Avoid AVs when renaming or creating sessions without an active connection in the background.
2010-10-20 16:41:12 +00:00
9b0995753b
Revert r2975 - false detection of VARCHARs as BLOBs on 4.0 servers. Seems somehow elsewhere. Additionally, r2975 introduced a false detection of VARBINARY columns as VARCHARs. Fixes issue #2182 and hopefully does not break issue #1588 again.
2010-10-19 22:36:56 +00:00
e6abc640dd
Keep ignorance of DateToStr exceptions in date/time grid editor, but raise everything what can happen apart from that.
2010-10-19 21:57:46 +00:00
da114cfa32
Add support for large and negative TIME values in grid editor. Fixes issue #2203 .
2010-10-19 21:45:36 +00:00
57fd30ceec
Fix empty db name in query memo when doubleclicking db tree. See http://www.heidisql.com/forum.php?t=6588
2010-10-12 22:21:45 +00:00
6c2a100945
Implement combo box for definer in routine + view + trigger editor. Fixes issue #2189 . Some related changes here:
...
- Remove ensureValidIdentifier() and its partly uncatched exceptions. Instead, disable "OK" buttons for empty table/view/proc name.
- QuoteIdent and DeQuoteIdent now take the glue char instead of a "HasMultiSegments" boolean param, so they're more exact when "user@host" or "db.name" come in.
2010-10-12 22:13:08 +00:00
62950faccc
Fix wrongly quoted db and table name in SHOW COLUMNS FROM query - accident in previous commit.
2010-10-08 20:28:49 +00:00
5d13d0677b
The 3 procedures Parse(Table|View|Routine)Structure() already do some connection specific stuff, and now even more, so they're moved to TMySQLConnection now. In order to display the right collation even if only the character set was found in a CREATE TABLE code, the default collation per charset is detected via CollationTable. See http://www.heidisql.com/forum.php?t=6348 .
2010-10-08 20:16:53 +00:00
61855c4e8b
In ParseViewStructure(), the CREATE VIEW code can contain the database name which the regular expression did not expect. Fixes issue #2188 .
2010-10-08 12:00:18 +00:00
65e34d81a2
Use right SynEdit keystrokes for making selection uppercase and lowercase. Fixes issue #2191 .
2010-10-07 22:22:59 +00:00
db64fa365a
Add right click menu item to SQL log: "Copy line to new query tab". Fixes issue #2198 .
2010-10-07 22:06:55 +00:00
081858679a
Split copy table query into two: a) CREATE and b) INSERT INTO target (..) SELECT (..) FROM src, to avoid "Duplicate column name" error on old 4.0 servers. Fixes issue #2205 .
2010-10-07 21:51:09 +00:00
fa8e1c6e20
Enable "Clear filter" button immediately after loading an old filter. Fixes issue #2197 .
2010-10-07 21:36:45 +00:00
a2d4396e17
Avoid division by zero in rare cases while painting color bars in query profile. Fixes issue #2196 .
2010-10-07 21:27:27 +00:00