Export to GitHub

roundhouse - issue #46

Nhibernate+ CS_AS Database


Posted on Nov 12, 2010 by Swift Kangaroo

What steps will reproduce the problem? Use latest svn version on a CS_AS database , RoundhousE.Version id column is lowercase

What is the expected output? What do you see instead? Sucesseful run, error

What version of the product are you using? On what operating system? Use latest svn version, W7 32 + W2k3 32

Please provide any additional information below. When using NHibernate

..... Id(x => x.id).Column("Id") .....

It generates a query like this:

SELECT top 1 this_.Id as Id6_0_, this_.repository_path as repository2_6_0_, this_.version as version6_0_, this_.entry_date as entry4_6_0_, this_.modified_date as modified5_6_0_, this_.entered_by as entered6_6_0_ FROM RoundhousE.Version this_ WHERE this_.repository_path = @p0 ORDER BY this_.entry_date desc

Because Id is lower case we got an error.

Changing code in several places (simple search and replace) to ..... Id(x => x.id).Column("id") .....

solved this issue.

Keep up with the good work

Comment #1

Posted on Nov 12, 2010 by Happy Panda

Thanks for letting me know. I will get that change made.

Comment #2

Posted on Nov 15, 2010 by Happy Panda

I just committed revision 274, which fixes this issue.

Status: Fixed

Labels:
Type-Defect Priority-High