Commits

yerokhin  committed 508707a

View key detection fix.

  • Participants
  • Parent commits 642ca04

Comments (0)

Files changed (1)

File src/htsql_pgsql/rulesparser.py

             try:
                 vcolname = view_columns[pkey_colname]
                 v_colnames.append(vcolname)
-            except ValueError:
+            except KeyError:
                 return []
         v_pkey = PrimaryKeyEntity(view.schema_name, view.name, v_colnames)
         v_fkey = ForeignKeyEntity(view.schema_name, view.name, v_colnames,