grr/server/grr_response_server/databases/mysql.py
def _CheckForMariaDB(self, cursor):
    """Checks if we are running against MariaDB."""
    for variable in ["version", "version_comment"]:
      cursor.execute("SHOW VARIABLES LIKE %s;", (variable,))
      version = cursor.fetchone()
      if version and "MariaDB" in version[1]:
        return True
    return False
Checks if we are running against MariaDB.
Checks if we are running against MariaDB.
Checks if we are running against MariaDB .
def _CheckForMariaDB(self, cursor):
    for variable in ["version", "version_comment"]:
      cursor.execute("SHOW VARIABLES LIKE %s;", (variable,))
      version = cursor.fetchone()
      if version and "MariaDB" in version[1]:
        return True
    return False
def _CheckForMariaDB ( self , cursor ) : for variable in [ "version" , "version_comment" ] : cursor . execute ( "SHOW VARIABLES LIKE %s;" , ( variable , ) ) version = cursor . fetchone ( ) if version and "MariaDB" in version [ 1 ] : return True return False
Checks if we are running against MariaDB.
Checks if we are running against MariaDB .
"""Checks if we are running against MariaDB."""
self
cursor