Skip to content

Commit

Permalink
Catch GLOBAL_VARIABLES table not in information_schema error
Browse files Browse the repository at this point in the history
  • Loading branch information
sjmudd committed Jan 8, 2018
1 parent 3382f47 commit aae566b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion global/variables.go
Expand Up @@ -63,7 +63,7 @@ func (v *Variables) selectAll() {

rows, err := v.dbh.Query(query)
if err != nil {
if !seenCompatibiltyError && err.Error() == showCompatibility56Error {
if !seenCompatibiltyError && (err.Error() == showCompatibility56Error || err.Error() == globalVariablesNotInISError) {
logger.Println("selectAll() I_S query failed, trying with P_S")
seenCompatibiltyError = true
query = "SELECT VARIABLE_NAME, VARIABLE_VALUE FROM " + selectVariablesFrom(seenCompatibiltyError)
Expand Down

0 comments on commit aae566b

Please sign in to comment.