On Jun 18, 2008, at 4:16 AM, Marin wrote:

>
> I get this error when i try to execute the folowing code (Test,
> Section, Question, Answer are mepped tables):
> test = Test()
> section = Section()
> section.Test=test
> for i in range(60):
>    q=Question()
>    q.Section=section
>    for j in range(6)
>        a = Answer()
>        a.Question = q
>
> db_session.save(test)
> db_session.commit()   <---- this command generates the error, and only
> if the number of Questions is above cca. 45
>
> But if I do a first commit before the "for i", and one commit after
> each question has been created then no error is generated. Is this a
> big in SQLAlchemy?

cant really tell unless you provide a fully functional, as simple as  
possible test case, preferably against sqlite, which can be run with  
no dependencies.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to