Ansgar Becker
05d02627f3
Make TConnectionParameters.IsMySQL specific to MySQL only, and rename the grouped type checks to IsAnyMySQL, IsAnyMSSQL etc. This way the status bar now shows "MySQL", not "MySQL or MariaDB"
2020-02-22 09:06:37 +01:00
Ansgar Becker
35e9d88f43
Issue #80 : Safely accept empty default value for probably non existing server variable "skip_name_resolve" in user manager.
2019-07-29 08:30:48 +02:00
Ansgar Becker
fcdf323086
Let TExtForm translate all strings on a form, to reduce the code in any FormCreate event
2019-07-21 20:12:13 +02:00
Ansgar Becker
88a9e53f0d
Remove remainders of DPI related code, and move TExtForm.AddSizeGrip procedure to property .HasSizeGrip. Uses TSizeGripXP instead of TSizeGripThemed, as this looks quite the same.
2019-07-21 19:44:05 +02:00
Ansgar Becker
c31cae2060
Giving up on high DPI readiness - remove tweaks which mostly don't work as expected, and even differently on various computers. Instead, let Windows blur fonts.
2019-07-18 20:53:53 +02:00
Ansgar Becker
92c8f62b85
High DPI:
...
* remove ParentFont flag from forms again (introduced in 9cdcd63145 for #213 ). This just inherits from default Windows settings.
* instead, scale font size in InheritFont(), and move that to the new TExtForm class
* mark app with PerMonitorV2 support
2019-07-17 21:59:18 +02:00
Ansgar Becker
2a91a13b42
Issue #677 :
...
* drop workaround for application crash on WinXP, when loading newer libmariadb (see #79 )
* raise TDbLib's own exception instead of baking an own one with less details. Probably helps in debugging: https://www.heidisql.com/forum.php?t=34044
* rename EDatabaseError to EDbError, to overcome naming conflict in DB unit
* load libpq.dll always with path, which should anyway work better than without it. See http://www.heidisql.com/forum.php?t=22514
2019-07-08 20:23:05 +02:00
Ansgar Becker
4f9613b05c
High DPI: fix growing window dimensions on each opening. Related to #378
2019-07-07 21:22:19 +02:00
Ansgar Becker
8f9abb2d3c
Fix unwanted enabling FModified flag in user manager dialog, when just switching the main tab to "Limitations", followed by a crash due to no focused user. Closes #493 .
2019-05-26 19:24:46 +02:00
Ansgar Becker
493138de1c
Fix wrong check for valid length of hashed password in MySQL 8 and MariaDB. Predefined length of 0, 16 and 41 characters is only valid with mysql_native_password plugin enabled users.
...
See https://www.heidisql.com/forum.php?t=26945#p27188
2019-05-26 19:00:52 +02:00
Ansgar Becker
cdb10d8005
Required code updates for recent VirtualTreeview update
2018-12-11 21:50:26 +01:00
Ansgar Becker
78788641d1
Query limitations in privileges can live in the very first GRANT, so don't reset these when the second one doesn't contain these. Closes #305 .
2018-11-26 16:17:15 +01:00
Ansgar Becker
2da1c6bceb
Don't wrap new password in PASSWORD() function, on newer MySQL servers. Closes #325 .
2018-11-26 15:53:47 +01:00
Ansgar Becker
9cdcd63145
Issue #213 : Assign system or custom font once, to the application, and let all forms inherit that font, so there is no need to call InheritFont() for each form.
2018-10-25 19:24:45 +02:00
Ansgar Becker
0e73a8cb92
Issue #213 : activate ParentFont on remaining TLabel's, so their font scales like all others
2018-10-24 20:01:29 +02:00
Ansgar Becker
3bcc6f4749
Quick fix for user@host combinations displayed as if they had no password: use password or authentication_string based on its content, use the first non-empty one. See https://www.heidisql.com/forum.php?t=22805
2018-05-01 09:55:46 +02:00
Ansgar Becker
5a8a4af29a
Rename helpers unit to apphelpers, to overcome a naming conflict with the FireMonkey unit FMX.Canvas.GPU.Helpers. Closes #102 .
2018-01-22 19:48:17 +01:00
Ansgar Becker
ade0bd3f44
Support multiple objects selected in user manager > add object.
2016-08-29 18:37:00 +00:00
Ansgar Becker
0ec226ce47
Do not complain about empty password when SHOW GRANTS output does not include the IDENTIFIED BY clause on MySQL 5.7.6+. See http://www.heidisql.com/forum.php?t=21351
2016-06-06 17:57:28 +00:00
Ansgar Becker
1ffe9d00ef
User manager: Allow double quotes in SHOW GRANTS output, to support ANSI mode. See http://www.heidisql.com/forum.php?t=19757
2015-11-27 18:12:17 +00:00
Ansgar Becker
d02f9822b3
User manager: Select "authentication_string" instead of "password" column on MySQL 5.7.6+. See http://www.heidisql.com/forum.php?t=18650
2015-06-28 10:25:29 +00:00
Ansgar Becker
9fc3c2a3bc
Overtake username and hashed password from old user when cloning a user. See http://www.heidisql.com/forum.php?t=8943
2014-03-30 05:31:34 +00:00
Ansgar Becker
75695bc90a
Revert previous commit and handle VIEWs exactly as we handle tables in user management, except for the icon in front of the privilege, which we detect so the user can distinct between tables and views.
2014-03-03 18:26:33 +00:00
Ansgar Becker
9c5a53445b
Support VIEW privileges in user manager. Seems that MySQL has 3 of it: DROP, SHOW VIEW, CREATE VIEW - but does not distinct the GRANT commands to those of TABLE grants. So, we distinct views from tables by watching out if there is a view with the relevant name. Fixes issue #2732 .
2014-03-03 05:21:15 +00:00
Ansgar Becker
e8990c6447
Clone hostname for a cloned user. See http://www.heidisql.com/forum.php?t=14681
2014-01-29 09:09:07 +00:00
Ansgar Becker
b22fa249f2
Allow localhost users to be edited again with the usermanager, in skip-name-resolve mode - localhost still seems to be a special case. Fixes issue #3472 .
2013-12-18 05:30:21 +00:00
Ansgar Becker
c8e5121b66
Attempt to fix an 64bit-only access violation
2013-11-13 18:48:55 +00:00
Ansgar Becker
6e608f157e
Replace out-dated code which does not compile in 64bit mode in helpers.SetWindowSizeGrip. Use a TForm descendant in the new unit "extra_controls". Code parts taken from http://www.delphigroups.info/2/4/326787.html
2013-11-01 14:54:13 +00:00
Ansgar Becker
438281fe5f
Extend detection of requirement to name resolving in user manager, to allow netmasks. Also, "localhost" is no longer auto-resolved via libmysql.dll. Fixes issue #3205 .
2013-05-30 06:05:44 +00:00
Ansgar Becker
056322c488
Expect dots in database and table names, when parsing SHOW GRANTS results. See http://www.heidisql.com/forum.php?t=12640
2013-05-11 05:15:11 +00:00
Ansgar Becker
b29e24b5d4
Do not complain about an empty password when having modified anything but the password of an existing user.
2012-12-08 21:36:33 +00:00
Ansgar Becker
d52d304361
Adjust width of even some more controls so they fit to the translated captions (at least in German). See https://www.transifex.com/messages/view/22056/
2012-12-08 10:56:58 +00:00
Ansgar Becker
9d8b4cd83a
Make more inline strings translatable.
2012-11-28 23:27:31 +00:00
Ansgar Becker
f96288fce9
Translate string variables and literals in .pas files. TODO: translate constants.
2012-11-26 05:44:01 +00:00
Ansgar Becker
ca1d94c87b
Issue #557 : Include gnugettext.pas from https://dxgettext.svn.sourceforge.net/svnroot/dxgettext/trunk/dxgettext/sample/ . And add basic code to all FormCreate events to translate their components in the future.
2012-11-10 14:28:44 +00:00
Ansgar Becker
f54c3634a6
Update blank password warning in user manager after updating user with a modified password, or vice versa. Fixes issue #3001 .
2012-10-27 08:23:23 +00:00
Ansgar Becker
90ab0b6cf1
Refactor logic for reading and writing application and session settings:
...
* Introduce TAppSettings, created in dpr file
* Implement read and write methods, and replace callers of GetRegValue and MainReg.WriteInt/... with these
* Optimize read and write methods for avoiding redundant accesses to registry
* Auto-remove stored default settings from registry to avoid registry spam
* Replace synced MainForm.pref* variables with TAppSettings.Read* calls
* Move SetLocales call to dpr file
* Move MainForm.FDirname* variables to appropriate methods in helpers.pas
* Implement TQueryHistory.Create(SessionPath), reading its items within constructor
2012-08-19 10:55:08 +00:00
Ansgar Becker
1858c04d82
Usermanager: Host may contain uppercase chars, it's just case sensitive, as stated on http://bugs.mysql.com/bug.php?id=19828 . Allow uppercase host names, which may cause errors when selecting such users, but as we have a exit-logic here that does not show AVs to the end user.
2012-04-06 09:03:26 +00:00
Ansgar Becker
75e69ec3ab
Detect --skip-name-resolve server option in usermanager, and disable users where that would cause "There is no such grant..." errors when firing "SHOW GRANTS FOR ...". On older servers there is no server variable for that detection, so as a fallback the "SHOW GRANTS FOR ..." errors are try/caught and the user node gets disabled lately. See r4101 and http://www.heidisql.com/forum.php
2012-04-01 09:30:40 +00:00
Ansgar Becker
66f9ead0f0
Avoid AV when trying to focus username edit box in cases where tabCredentials is not the active tab.
2012-03-29 13:59:13 +00:00
Ansgar Becker
269d3a0791
Revert r4101 - instead, do a FLUSH PRIVILEGES when the user manager dialog is opened, to ensure that non-flushed users can be edited. Users with uppercase chars in their host name cannot be edited - disable such nodes with a hint on how to manually fix that.
2012-03-27 23:17:20 +00:00
Ansgar Becker
500472970a
User manager: Check grants *before* tree node has focus. Could be a non-flushed user, since we just SELECT them from mysql.user. Catch such "There is no such grant defined for user" errors and disable tree node in that case. See http://www.heidisql.com/forum.php?t=10364
2012-03-24 07:40:26 +00:00
Ansgar Becker
b271ea2670
Find GRANT OPTION also when SSL requirements are set. Fixes issue #2671 .
2012-02-05 07:04:41 +00:00
Ansgar Becker
6325d42c4b
Fix enabled controls which should be disabled when no SSL option selected.
2012-01-07 09:13:13 +00:00
Ansgar Becker
84d27865e2
Fix mixed up GRANT privilege in user manager, caused by errors and high complexity in regular expression. See issue #2671 . Revert modification in SynRegExpr.pas again, now that we have only about 10 parentheses left.
2012-01-06 01:03:12 +00:00
Ansgar Becker
aedbb997ab
Support GRANT .. REQUIRE syntax in user manager with a new "SSL options" tab. Fixes issue #2671 .
2012-01-05 20:44:49 +00:00
Ansgar Becker
1f75acc999
Fix non-overtaken grants when user clicks "clone user". See http://www.heidisql.com/forum.php?t=8943
2011-07-30 08:20:51 +00:00
Ansgar Becker
48ed802352
Usermanager: Support CREATE TABLESPACE privilege in MySQL 5.4.4 and up. See 5.4 manual for version. And add TODO for different syntax of GRANT PROXY.
2011-07-22 05:02:31 +00:00
Ansgar Becker
d0f7e7f505
Support account resources limits in user manager. Fixes issue #2492 .
2011-07-14 19:54:37 +00:00
Ansgar Becker
133b2a265c
Refactor code for Host subtabs: Remove TVTreeData structure, use TDBQueryList instead. Use same code for most grid events.
2011-07-03 08:44:20 +00:00