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

SQL error code = -204 [DNET514] #497

Closed
firebird-automations opened this issue Aug 5, 2013 · 9 comments
Closed

SQL error code = -204 [DNET514] #497

firebird-automations opened this issue Aug 5, 2013 · 9 comments

Comments

@firebird-automations
Copy link

Submitted by: Rand Random (rand.random)

Duplicates DNET513

I installed the new .NET Provider and tried to update my EDMX Model (with Database First) but I am getting the following in my output window:

Unable to generate the model because of the following exception: 'An error occurred while executing the command definition. See the inner exception for details.
Dynamic SQL Error
SQL error code = -204
Data type unknown
Implementation limit exceeded
COLUMN DSQL internal
Dynamic SQL Error
SQL error code = -204
Data type unknown
Implementation limit exceeded
COLUMN DSQL internal
'.
Loading metadata from the database took 00:00:00.4426206.
Generating the model took 00:00:07.6167923.
Added the connection string to the App.Config file.
Writing the .edmx file took 00:00:00.0012551.

I am creating the following Domain, since Firebird 2.5 and earlier is lacking support for boolean:

SET TRANSACTION;

SET TERM !! ;
EXECUTE BLOCK AS BEGIN

if (exists(select 1 from rdb$fields f, rdb$types t
where f.rdb$field_name='BOOLEAN'
and f.rdb$field_type=t.rdb$type
and t.rdb$field_name='RDB$FIELD_TYPE')) then
execute statement 'drop DOMAIN BOOLEAN;';

execute statement 'CREATE DOMAIN BOOLEAN
AS SMALLINT DEFAULT 0
CHECK (value in (0, 1));';
END!!
SET TERM ; !!

COMMIT TRANSACTION;

could this be the root of the problem, and how would I fix it?

Thanks in advance.

@firebird-automations
Copy link
Author

Modified by: Rand Random (rand.random)

description: I installed the new .NET Provider and tried to update my EDMX Model (with Database First) but I am getting the following in my output window:

Unable to generate the model because of the following exception: 'An error occurred while executing the command definition. See the inner exception for details.
Dynamic SQL Error
SQL error code = -204
Data type unknown
Implementation limit exceeded
COLUMN DSQL internal
Dynamic SQL Error
SQL error code = -204
Data type unknown
Implementation limit exceeded
COLUMN DSQL internal
'.
Loading metadata from the database took 00:00:00.4426206.
Generating the model took 00:00:07.6167923.
Added the connection string to the App.Config file.
Writing the .edmx file took 00:00:00.0012551.

I am creating the following Domain, since Firebird 2.5 and earlier is lacking support for boolean:

SET TRANSACTION;

SET TERM !! ;
EXECUTE BLOCK AS BEGIN

if (exists(select 1 from rdb$fields f, rdb$types t
where f.rdb$field_name='BOOLEAN'
and f.rdb$field_type=t.rdb$type
and t.rdb$field_name='RDB$FIELD_TYPE')) then
execute statement 'drop DOMAIN BOOLEAN;';

execute statement 'CREATE DOMAIN BOOLEAN
AS SMALLINT DEFAULT 0
CHECK (value in (0, 1));';
END!!
SET TERM ; !!

COMMIT TRANSACTION;

could this be the root of the problem, and how would I fix it?

In my Database I have

=>

I installed the new .NET Provider and tried to update my EDMX Model (with Database First) but I am getting the following in my output window:

Unable to generate the model because of the following exception: 'An error occurred while executing the command definition. See the inner exception for details.
Dynamic SQL Error
SQL error code = -204
Data type unknown
Implementation limit exceeded
COLUMN DSQL internal
Dynamic SQL Error
SQL error code = -204
Data type unknown
Implementation limit exceeded
COLUMN DSQL internal
'.
Loading metadata from the database took 00:00:00.4426206.
Generating the model took 00:00:07.6167923.
Added the connection string to the App.Config file.
Writing the .edmx file took 00:00:00.0012551.

I am creating the following Domain, since Firebird 2.5 and earlier is lacking support for boolean:

SET TRANSACTION;

SET TERM !! ;
EXECUTE BLOCK AS BEGIN

if (exists(select 1 from rdb$fields f, rdb$types t
where f.rdb$field_name='BOOLEAN'
and f.rdb$field_type=t.rdb$type
and t.rdb$field_name='RDB$FIELD_TYPE')) then
execute statement 'drop DOMAIN BOOLEAN;';

execute statement 'CREATE DOMAIN BOOLEAN
AS SMALLINT DEFAULT 0
CHECK (value in (0, 1));';
END!!
SET TERM ; !!

COMMIT TRANSACTION;

could this be the root of the problem, and how would I fix it?

Thanks in advance.

@firebird-automations
Copy link
Author

Modified by: @cincuranet

Link: This issue duplicates DNET513 [ DNET513 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => Closed [ 6 ]

resolution: Duplicate [ 3 ]

@firebird-automations
Copy link
Author

Commented by: Anil Mujagic (anilmujagic)

I have the same issue with version 3.1.1.0 :(

@firebird-automations
Copy link
Author

Commented by: Rand Random (rand.random)

I posted the same problem again here:
DNET518

Jiri already said its fixed but the version isnt in the pipeline.

@firebird-automations
Copy link
Author

Modified by: @cincuranet

Link: This issue relate to DNET520 [ DNET520 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

Link: This issue relate to DNET520 [ DNET520 ] =>

@firebird-automations
Copy link
Author

Modified by: @cincuranet

Link: This issue relate to DNET518 [ DNET518 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

Link: This issue relate to DNET518 [ DNET518 ] =>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants