Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wph95/dashbase #1

Closed
wants to merge 15 commits into from
Prev Previous commit
Next Next commit
fix unit tests
breezewish committed Oct 16, 2017
commit bddb75c90be74dd74569b37e10ec21113701ba0a
2 changes: 1 addition & 1 deletion session.go
Original file line number Diff line number Diff line change
@@ -734,7 +734,7 @@ func (s *session) Execute(sql string) (recordSets []ast.RecordSet, err error) {
compiler := executor.Compiler{}
for _, stmtNode := range stmtNodes {
// Special logic for dashbase related SQL.
if !s.IsSystemSession() && domain.Config.Dashbase.Enabled {
if !s.IsSystemSession() && domain.Config != nil && domain.Config.Dashbase.Enabled {
caught, r, err := dashbase.Execute(stmtNode)

if caught {