SQLSTATE[42P01] avec symfony doctrine

From: Laurent Mesuré <laurent(dot)mesure(at)free(dot)fr>
To: pgsql-fr-generale(at)postgresql(dot)org
Subject: SQLSTATE[42P01] avec symfony doctrine
Date: 2010-07-28 21:39:35
Message-ID: 4C50A397.9040702@free.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-fr-generale

Bonjour,

j'utilise symfony 1.4 avec doctrine. QUand j essaye de generer le schema
de ma base de donnée, j'ai l'erreur suivante:

SQLSTATE[42P01]: Undefined table: 7 ERREUR: entrée manquante de la
clause FROM pour la table « t »
LINE 6: t.typtype AS typtype,
^. Failing Query: "SELECT
ordinal_position
as attnum,
column_name as field,
udt_name as type,
data_type as
complete_type,
t.typtype AS
typtype,
is_nullable as
isnotnull,
column_default as
default,
(
SELECT 't'
FROM
pg_index, pg_attribute a, pg_class c, pg_type t
WHERE
c.relname = table_name AND a.attname = column_name
AND a.attnum
> 0 AND a.attrelid = c.oid AND a.atttypid = t.oid
AND c.oid =
pg_index.indrelid AND a.attnum = ANY (pg_index.indkey)
AND
pg_index.indisprimary = 't'
AND
format_type(a.atttypid, a.atttypmod) NOT LIKE 'information_schema%'
) as pri,

character_maximum_length as length
FROM
information_schema.COLUMNS
WHERE table_name =
'agtagents'
ORDER BY
ordinal_position"

Tout semble lié à t.typtype dans information_schema.columns.
J'ai regardé dans le catalogue de ma base de donnée, postgresql 8.5 sur
une mandiva 2010.1 et cette colonne n'existe pas dans les 44 colonnes de
information_schema.columns.

J'ai fait des recherches sur le net, et il semble qu'il devrait exister.
Quelqu'un aurait-il une idée?
merci d'avance

laurent

Responses

Browse pgsql-fr-generale by date

  From Date Subject
Next Message Tzacos 2010-07-28 21:41:34 SQLSTATE[42P01] avec symfony doctrine
Previous Message Patrick FRANCELLE 2010-07-24 22:39:09 Nouvelles mensuelles de l'association PostgreSQLFr : Juillet 2010