I actually I just found the problem; the tables are in fact created in the
right order - the problem is that the DDL contains INHERITS ( "parent" ).
It gives the same error if I try to run the code in a GUI with the
inherited table name quoted, without (the quoting) though it works.
On Mon, Nov
Hey,
I want to execute the following statement in the most SQLAlchemy way
possible:
CREATE INDEX ix_user_points ON "user" (points DESC NULLS LAST);
So I want to add a "DESC NULLS LAST" or equivalent as per documentation
(http://www.postgresql.org/docs/current/static/indexes-ordering.html)
On 11/23/2015 03:01 PM, Florian Rüchel wrote:
> Hey,
>
> I want to execute the following statement in the most SQLAlchemy way
> possible:
>
> CREATE INDEX ix_user_points ON "user" (points DESC NULLS LAST);
>
> So I want to add a "DESC NULLS LAST" or equivalent as per documentation
>
Thanks!
On 11/23/2015 09:06 PM, Mike Bayer wrote:
>
> On 11/23/2015 03:01 PM, Florian Rüchel wrote:
>> Hey,
>>
>> I want to execute the following statement in the most SQLAlchemy way
>> possible:
>>
>> CREATE INDEX ix_user_points ON "user" (points DESC NULLS LAST);
>>
>> So I want to add a "DESC
I attached a script that reproduces the problem. It actually only happens
if the metadata contains a schema, then the tablename in the INHERITS()
clause get quoted, which causes the problem.
On Monday, November 23, 2015 at 7:13:27 PM UTC+1, Adrian wrote:
>
> I actually I just found the problem;
On 11/23/2015 03:15 PM, Adrian wrote:
> I attached a script that reproduces the problem. It actually only
> happens if the metadata contains a schema, then the tablename in the
> INHERITS() clause get quoted, which causes the problem.
>
postgresql_inherits was only added in 1.0.How can
That's true now that you are saying it, I actually implemented it myself
before using a simple @compiles with CreateTable.
On Mon, Nov 23, 2015 at 9:33 PM Mike Bayer wrote:
>
>
> On 11/23/2015 03:15 PM, Adrian wrote:
> > I attached a script that reproduces the problem.
On 11/23/2015 03:15 PM, Adrian wrote:
> I attached a script that reproduces the problem. It actually only
> happens if the metadata contains a schema, then the tablename in the
> INHERITS() clause get quoted, which causes the problem.
anyway, there's no direct "postgresql_inherits_schema"
Thanks Michael.
On Saturday, 21 November 2015 22:35:14 UTC, Michael Bayer wrote:
>
>
>
> On 11/20/2015 12:20 PM, Martin Pengelly-Phillips wrote:
> > Hi there,
> >
> > Using SQLAlchemy 1.0.9
> >
> > I am dealing with some legacy code and came across the following issue.
> > It appears that
Hi,
I am using the flask-sqlalchemy extension with MySQL (default
configuration), and I have a structure similar to the following example:
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
def __init__(self):
return
class A(User):
id =
Hello,
I have the following problem - I recently upgraded to the 1.0+ branch from
0.9 and now the PostgreSQL table inheritance does not work properly any
longer because the tables that inherit from the master table are sometimes
created before (random) the actual table they inherit from,
On 11/23/2015 12:43 PM, Adrian wrote:
> Hello,
>
> I have the following problem - I recently upgraded to the 1.0+ branch
> from 0.9 and now the PostgreSQL table inheritance does not work properly
> any longer because the tables that inherit from the master table are
> sometimes created before
Greetings,
I'm new to SQLAlchemy - sorry if the answer to this question is obvious.
I have a table with many fields.
I've created the ORM mapping:
Base = declarative_base()
class CallRecord(Base):
[stuff]
I'd like to create the CallRecord object by passing a dictionary to the
constructor. Is
That works and solves it, thanks!
On Mon, Nov 23, 2015 at 9:37 PM Mike Bayer wrote:
>
>
> On 11/23/2015 03:15 PM, Adrian wrote:
> > I attached a script that reproduces the problem. It actually only
> > happens if the metadata contains a schema, then the tablename in
> On 23 Nov 2015, at 17:58, mzagr...@d.umn.edu wrote:
>
> Greetings,
>
> I'm new to SQLAlchemy - sorry if the answer to this question is obvious.
>
> I have a table with many fields.
>
> I've created the ORM mapping:
>
> Base = declarative_base()
> class CallRecord(Base):
> [stuff]
>
> I'd
15 matches
Mail list logo