mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-09 07:03:10 -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) {
|
||||
case *pq.Error:
|
||||
// ignore undefined_column (42703) errors, as this is expected at this point
|
||||
if e.Code == "42703" {
|
||||
return s, nil
|
||||
if e.Code != "42703" {
|
||||
return nil, err
|
||||
}
|
||||
default:
|
||||
return nil, err
|
||||
|
|
|
|||
Loading…
Reference in a new issue