-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
patrick k wrote:
> query is:
>
> 'INSERT INTO `skip_filmstarts_a` (`film_id`,`_order`)
VALUES (%s,(SELECT
> COUNT(*) FROM `skip_filmstarts_a` WHERE `film_id` =
%s))'
No luck,
django.core.meta.__init_py:1020
# TODO: This assumes the database supports subqueries.
placeholders.append('(SELECT COUNT(*) FROM %s WHERE %s =
%%s)' % \
(db.db.quote_name(opts.db_table),
db.db.quote_name(opts.order_with_respect_to.column)))
MySQL doc says that all sub queries are supported after 4.1,
which version you are using?
Tried with sqlite driver and works and I presume that
postgresql will work too.
Worth a ticket
- --
Nebojša Đorđević - nesh
Studio Quattro - Niš - SCG
http://studioquattro.biz/
a>
http://djnesh.blogspot.co
m/ | http://djnesh-djan
go.blogspot.com/ | http://djangou
tils.python-hosting.com/
Registered Linux User 282159 [http://counter.li.org]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFD/102t2W58T89D+0RAqncAJ45ud+tGxX1mglnoTCj0i9EWwynwACe
MzoU
Fa/ETh/IpByxCu3+e0rOth4=
=XqD8
-----END PGP SIGNATURE-----
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-users googlegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
|