mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-10 15:43:09 -06:00
Return error if it's not "column does not exist"
This commit is contained in:
parent
129fb0b030
commit
430f2ad0a5
|
|
@ -79,8 +79,8 @@ func NewPostgresKeyChangesTable(db *sql.DB) (tables.KeyChanges, error) {
|
||||||
switch e := err.(type) {
|
switch e := err.(type) {
|
||||||
case *pq.Error:
|
case *pq.Error:
|
||||||
// ignore undefined_column (42703) errors, as this is expected at this point
|
// ignore undefined_column (42703) errors, as this is expected at this point
|
||||||
if e.Code == "42703" {
|
if e.Code != "42703" {
|
||||||
return s, nil
|
return nil, err
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue