Commit Graph

15 Commits (f2c2dddc0197ee4a6c9ca7789d10b337a098035e)

Author SHA1 Message Date
Michael Scherer 20342860ad Convert all databases modules to python3 and 2.4 syntax (#3688) 9 years ago
Rene Moser 9765a30179 mysql_variables: fix inconsistent params, fixes ubuntu 16.04 support
In the mysql_user module, login_host is defined as "localhost". Setting this to localhost also fixes Ubuntu 16.04 support.

To make it more consistent in the future, the params in all mysql modules should move to module utils. I'll take care.

Also fixed a few other things along.
9 years ago
Matt Clay 518803c4d7 Add optional connect timeout to mysql* modules. 9 years ago
Matt Martz c7845456a6 Various simple linting type cleanups on modules 9 years ago
Jonathan Mainguy 69d56c4d21 Unify all 3 mysql modules.
Use same connection method, use config_file, and add ssl support
9 years ago
Jonathan Mainguy e101657722 Update error message to be more explicit 9 years ago
Brian Coca 769b81cae1 Merge pull request #1001 from ospii/devel
Validate variable, return only the found variable value instead of tuple
9 years ago
Brian Coca ab5b5e8819 corrected version added 9 years ago
acaveroc e7876df99f Add version_added and type of parameter 10 years ago
acaveroc 7d2a5965bd Assorted minor bug fixes
- Modified data type for port definition from string to integer
- Modified login_host default value for compatibilize with port definition according with MySQL Documentation (https://dev.mysql.com/doc/refman/5.0/en/connecting.html)
10 years ago
acaveroc 5b84b0d136 Add port definition support for mysql_vars module 10 years ago
Greg DeKoenigsberg 2a5f0bde87 Proper author info for all remaining modules 10 years ago
Jesse Sandberg fc4c659400 Validate variable, return only the found variable value instead of tuple
Docs imply the mysql_variables is used to operate a single variable therefore
- fail before making any db connections if variable is not set
- validate chars for mysql variable name with re.match(^[a-z0-9_]+)
- use "SHOW VARIABLE WHERE Variable_name" instead of LIKE search
- getvariable() returns only the value or None if variable is not found
- the module returns only the found variable value instead of tuple for easier operation eg. as registere variable in tasks
10 years ago
Toshio Kuratomi 10ebcccedb Escape mysql identifiers 10 years ago
Michael DeHaan 3ed1378067 Some more module categorization. 10 years ago