SchemaValidator fails for PostgreSql 9.2 sequence

Description

When validating schema in PostgreSql 9.2 the SchemaValidator throws [NHibernate.HibernateException] = {"Missing sequence or table: permission_tree_id_gen"} exception.

To fix this issue I had to override QuerySequencesString in the PostgreSQL82Dialect class.

I created PostgreSQL92Dialect as a workaround for this issue.

Environment

None

Attachments

2
  • 01 Oct 2013, 10:00 PM
  • 01 Oct 2013, 02:31 PM

Activity

Show:

Frédéric Delaporte July 25, 2018 at 3:54 PM

Moved here.

cwatzl January 28, 2014 at 12:39 PM
Edited

Having the same problem with PostgreSQL 9.3, using NHibernate.Dialect.PostgreSQLDialect. Your workaround (using custom PostgreSQL92Dialect) works for me.

Tomas Sedlak October 1, 2013 at 10:00 PM
Edited

Added simple test case.

Alex Zaytsev October 1, 2013 at 9:16 PM

, a test case or at least a stack-trace would be useful.

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?

Created October 1, 2013 at 2:31 PM
Updated July 25, 2018 at 3:54 PM
Resolved July 25, 2018 at 3:54 PM
Who's Looking?