Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Unknown database type anyelement requested #43

Closed
ahmadsyamim opened this issue Aug 30, 2024 · 2 comments
Closed

[Bug]: Unknown database type anyelement requested #43

ahmadsyamim opened this issue Aug 30, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ahmadsyamim
Copy link

ahmadsyamim commented Aug 30, 2024

What happened?

Unknown database type anyelement requested, Doctrine\DBAL\Platforms\PostgreSQL100Platform may not support it.

image

How to reproduce the bug

image

SELECT
                    a.attnum,
                    quote_ident(a.attname) AS field,
                    t.typname AS type,
                    format_type(a.atttypid, a.atttypmod) AS complete_type,
                    (SELECT t1.typname FROM pg_catalog.pg_type t1 WHERE t1.oid = t.typbasetype) AS domain_type,
                    (SELECT format_type(t2.typbasetype, t2.typtypmod) FROM
                      pg_catalog.pg_type t2 WHERE t2.typtype = 'd' AND t2.oid = a.atttypid) AS domain_complete_type,
                    a.attnotnull AS isnotnull,
                    (SELECT 't'
                     FROM pg_index
                     WHERE c.oid = pg_index.indrelid
                        AND pg_index.indkey[0] = a.attnum
                        AND pg_index.indisprimary = 't'
                    ) AS pri,
                    (SELECT pg_get_expr(adbin, adrelid)
                     FROM pg_attrdef
                     WHERE c.oid = pg_attrdef.adrelid
                        AND pg_attrdef.adnum=a.attnum
                    ) AS default,
                    (SELECT pg_description.description
                        FROM pg_description WHERE pg_description.objoid = c.oid AND a.attnum = pg_description.objsubid
                    ) AS comment
                    FROM pg_attribute a, pg_class c, pg_type t, pg_namespace n
                    WHERE n.nspname NOT IN ('pg_catalog', 'information_schema', 'pg_toast') AND c.relname = 'news' AND n.nspname = ANY(current_schemas(false))
                        AND a.attnum > 0
                        AND a.attrelid = c.oid
                        AND a.atttypid = t.oid
                        AND n.oid = c.relnamespace
                    ORDER BY a.attnum;

image

Package Version

1.2.1

PHP Version

8.1.29

Laravel Version

9.38.0

CockroachDB Version

24.2.0

Which operating systems does with happen with?

No response

Notes

No response

@ahmadsyamim ahmadsyamim added the bug Something isn't working label Aug 30, 2024
@ahmadsyamim
Copy link
Author

For Reference: doctrine/dbal#6249

@peterfox
Copy link
Collaborator

Hi @ahmadsyamim there's no clear explanation of what the problem here is or how to reproduce it. I can't spend my time second guessing from these screenshots as to what the problem is. There needs to be a full step by step guide at a minimum for how you got the problem and what was expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants