are you sure that the referencED table exists before the referencING one ? On Wednesday, November 18, 2015 at 5:01:03 PM UTC+1, Maxwell Morais wrote: > > Any suggestion? > > Em segunda-feira, 16 de novembro de 2015 18:31:07 UTC-2, Maxwell Morais > escreveu: >> >> Hi all! >> >> I'm trying to implement a small layer over DAL, for my meta-schemas, and >> I'm facing a very strange issue! >> >> My model is hosted here >> https://github.com/MaxMorais/esquema/blob/master/esquema/lds.py#L248, I >> commented the line that is raising a error in SQLite3. >> >> What is going wrong is: >> >> When I use my class to define a model, each sub-model make a explicity >> reference to the master model, until here nothing special, I guess! >> >> While DAL try to create the table, I receive a error from SQLite3, >> basicaly the SQL Statement is right, but the order of the statemets is >> wrong, see it here https://gist.github.com/MaxMorais/8c22caec9789032ea99a, >> the fine.SQL is the file that I edited the order of the statements, and the >> wrong.SQL is the untouched SQL from DAL. >> >> Inspecting the code, I found the stretch of code that is generating this >> statement, the stretch is this: >> https://github.com/web2py/pydal/blob/fef5ed36f07f211aee7c9a5d2218d2b9f3b77c99/pydal/adapters/base.py#L312, >> >> but I dont have idea, why it is in this way! >> >> >> >> -- >> >> Best Regards. >> >> Maxwell Morais >> Python Developer powered by Webnotes framework <3 >> +55 11 954329659 >> >>
-- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

