Hey everyone,
Is it the expected behavior that after querying an object with
`session.query(...).autoflush(False)...` and modifying some of its
fields still makes it issue UPDATE when a relation of the object is
referenced?
Let me illustrate what I mean precisely. First I query the Page class:
te:
> would have to see how you've set things up in order for that to occur. If
> you use the Unicode type with default settings, the behavior is the same on
> 0.5 and 0.6 - Python unicodes are expected and a warning is emitted
> otherwise. With String,VARCHAR, CHAR, etc., this is not
Hi all,
I upgraded to SA 0.6beta3 and suddenly I am getting a lot of
"SAWarning: Unicode type received non-unicode bind param value"
warnings for the code that worked OK on 0.5.x. The warnings occur even
for values that are plain ascii (no code points above 127).
Does it mean I'll have to make su
On Mar 28, 7:24 pm, Chris Withers wrote:
> Peteris Krumins wrote:
> > The other possibility is to use singular, "class Comment".
>
> This is correct.
>
> > That fixes
> > the above problem but introduces a new problem, particularly,
>
> >
ry(Foo)" throughout, can also
> transparently be made to use a thread-scoped session by changing the meaning
> of the identifier "session".
>
This is the best explanation I have read on this topic! Thanks for
writing it! Now I clearly see what is going on.
Just one more thing - w
On Mar 28, 7:12 pm, Michael Bayer wrote:
> On Mar 28, 2010, at 10:26 AM, Peteris Krumins wrote:
>
>
>
> > Hi all,
>
> > Can anyone explain to me how to correctly create sessions in web
> > applications?
>
> > The documentation gives an example with a sc
out. My mind refuses to understand that.
Anyone else has the same issues on naming things?
I am thinking the workaround is to introduce aliases, "Comment" and
"Comments" and use them where necessary:
Session.add(Comment("a new comment"))
and
Session.query(C
211L
Both work identically, but I don't understand the difference. Can
anyone explain it please?
Also when do I have to call remove() method that is mentioned in
documentation?
Thanks,
Peteris Krumins
--
You received this message because you are subscribed to the Google Groups
"sql