[sqlalchemy] Re: PostgreSQL: interval columns, values measured in months or years

2013-12-24 Thread Sibylle Koczian
Am 24.12.2013 08:11, schrieb Laurence Rowe: Postgres' INTERVAL supports deltas of quantities other than days, +1 month may mean 28/29/30/31 days depending on the month. From

[sqlalchemy] TypeError: Range objects cannot be ordered in flush

2013-12-24 Thread Chris Withers
Hi All, I feel like I've asked this before but apologies, I cannot find the previous thread. So, when using the support for psycopg2's range types I added, I sometimes see the following during a flush: File

Re: [sqlalchemy] TypeError: Range objects cannot be ordered in flush

2013-12-24 Thread Michael Bayer
On Dec 24, 2013, at 10:48 AM, Chris Withers ch...@simplistix.co.uk wrote: Hi All, I feel like I've asked this before but apologies, I cannot find the previous thread. So, when using the support for psycopg2's range types I added, I sometimes see the following during a flush: File

Re: [sqlalchemy] TypeError: Range objects cannot be ordered in flush

2013-12-24 Thread Ryan Kelly
On Tue, Dec 12/24/13, 2013 at 11:52:29AM -0500, Michael Bayer wrote: On Dec 24, 2013, at 10:48 AM, Chris Withers ch...@simplistix.co.uk wrote: Hi All, I feel like I've asked this before but apologies, I cannot find the previous thread. So, when using the support for psycopg2's

[sqlalchemy] Re: PostgreSQL: interval columns, values measured in months or years

2013-12-24 Thread David Bolen
Sibylle Koczian nulla.epist...@web.de writes: Exactly, that's it. The stackoverflow discussion was very instructive, thank you! I'll try out psycopg2-dateutils. I'm a big fan of dateutil. If you do use it, you may also choose to bypass the use of timedelta entirely, since as you've seen it