Export: support export in postgresql (#58553)
This commit is contained in:
@@ -3,7 +3,6 @@ package export
|
||||
import (
|
||||
"path"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/grafana/grafana-plugin-sdk-go/data/sqlutil"
|
||||
|
||||
@@ -64,7 +63,7 @@ func exportUsage(helper *commitHelper, job *gitExportJob) error {
|
||||
for _, usage := range dump {
|
||||
rows, err := sess.DB().QueryContext(helper.ctx, usage.sql)
|
||||
if err != nil {
|
||||
if strings.HasPrefix(err.Error(), "no such table") {
|
||||
if isTableNotExistsError(err) {
|
||||
continue
|
||||
}
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user