2

私はGAEでweb2pyを使用しています。明確な句を持つクエリの一部を使用しているときに、GAEがエラーをスローします。トレースバックを貼り付けました。誰かがこれを手伝ってくれませんか。

In FILE: /base/data/home/apps/panneersoda/1.341206242889687944/applications/init/controllers/default.py

Traceback (most recent call last):
  File "/base/data/home/apps/panneersoda/1.341206242889687944/gluon/restricted.py", line 173, in restricted
    exec ccode in environment
  File "/base/data/home/apps/panneersoda/1.341206242889687944/applications/init/controllers/default.py:profileview", line 263, in <module>
  File "/base/data/home/apps/panneersoda/1.341206242889687944/gluon/globals.py", line 96, in <lambda>
    self._caller = lambda f: f()
  File "/base/data/home/apps/panneersoda/1.341206242889687944/applications/init/controllers/default.py:profileview", line 97, in profileview
  File "/base/data/home/apps/panneersoda/1.341206242889687944/gluon/contrib/gql.py", line 675, in select
    (items, tablename, fields) = self._select(*fields, **attributes)
  File "/base/data/home/apps/panneersoda/1.341206242889687944/gluon/contrib/gql.py", line 624, in _select
raise SyntaxError, 'invalid select attribute: %s' % key
SyntaxError: invalid select attribute: distinct

ありがとう

4

1 に答える 1

2

申し訳ありませんが、distinctはGAEでは機能せず、RDBSでのみ機能します。

于 2010-04-13T00:52:26.113 に答える