From: Oleg B. <ph...@ph...> - 2012-06-22 13:05:26
|
On Fri, Jun 22, 2012 at 01:50:26PM +0100, Hans Georg Schaathun <geo...@sc...> wrote: > Hi again, > > On Thu, Jun 21, 2012 at 10:15:03AM +0200, Petr Jake?? wrote: > > Hi, > > I am not sure if following is what are you looking for, but in my case, I > > have a view defined manually on the SQL server side. > > in the SQLObject I am working with the VIEW like it with an ordinary table, > > see my code below: > > your approach does not seem to work; I get > > AssertionError: No primary key found in table 'scaled_feature_value' > > As far as I can see, there is no way to define a primary key on a view. > I have managed to get an id column which should be unique. Is there > something I have missed? Such as a way to tell SQLObject not to check > for the restriction? The bug was fixed in SQLObject releases 1.2.3 and 1.3.1. Oleg. -- Oleg Broytman http://phdru.name/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |