Hi,
I can't figure how that occurs but I'm facing to a stange ?bug?. (I
try to write a testcase but without success)
After a call to session.query(MClass).get(id), the returned object has
all these attributes marked as unloaded
If I do a session.refresh(myObject), attributes are correctly
at 0xd7bce6c
ignored
On 6 août, 14:22, sagblmi laurent.mig...@gmail.com wrote:
Hi,
I can't figure how that occurs but I'm facing to a stange ?bug?. (I
try to write a testcase but without success)
After a call to session.query(MClass).get(id), the returned object has
all these attributes marked
wrote:
sagblmi wrote:
I don't know if it's relevant with my prob but my application ends
with the following errors
Exception exceptions.AttributeError: 'NoneType' object has no
attribute 'from_attribute' in bound method
MutableAttrInstanceState._cleanup
Hy,
For a long time ago I manage versioned data's into relational
database. You must be careful with the way you deal with timeable
information.
Membership table represent information with a validity period
specified by start and stop attribute.
The first change that I propose is to replace your
Hi,
How can I build an ORM query using the sql OVERLAPS operator?
The overlaps operator can be expressed with the query:
SELECT *
FROM PERIOD
WHERE (P1_START P2_START AND (P1_START P2_FIN OR P1_FIN
P2_FIN)) OR
(P2_START P1_START AND (P2_START P1_FIN OR P2_FIN
P1_FIN)) OR
Hi,
A very simple question...
Context:
* I only need to retrieve values from a table
* I've a mapper object for the table
Question:
In a performance point a view which is the more suitable method:
- mappers = session.query(User).filter_by(name='ed').all()
or
- results =
When I run the testsuite more than once, results are differents.
This strange behavior disappear when the the testsuite is launched
with python in optimize mode 'python -OO alltest.py'
This is particularly true with orm.inheritance5.
Very very strange and very blocking since we can't guarantee