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

FbDataAdapter truncates alias names to 31 characters when using embedded server #1123

Open
zur003 opened this issue Jul 25, 2023 · 7 comments

Comments

@zur003
Copy link

zur003 commented Jul 25, 2023

With Firebird 4, the default object length was raised from 31 bytes to 63 characters, so column names can now exceed the old 31 byte limit. However, it appears that if FbDataAdapter is used to import the results of a query into a .Net DataTable, the column names are being truncated to 31 bytes.

@zur003
Copy link
Author

zur003 commented Jul 29, 2023

Apologies for my misunderstanding. I was using a SELECT query with aliases for the column names, and some of those aliases exceeded 31 characters in length. These were being truncated to 31 characters, but the problem is not in FbDataAdapter but rather in Firebird itself. I shall raise this as in issue on a more appropriate site.

@zur003 zur003 closed this as completed Jul 29, 2023
@zur003 zur003 changed the title FbDataAdapter truncates column names to 31 characters FbDataAdapter truncates alias names to 31 characters when using embedded server Jul 29, 2023
@zur003
Copy link
Author

zur003 commented Jul 29, 2023

After a bit more experimentation, I am re-opening this Issue. The problem I was seeing - truncation of column aliases to 31 characters - is occurring only with the embedded server, not when using a "network" server. Queries issued using the isql application do not have this problem, whether the server is embedded or not.

Is there a chance this might be fixed as part of #1023?

@zur003 zur003 reopened this Jul 29, 2023
@gilsonjoanelo
Copy link
Contributor

Is this validation necessary? I'm looking at the SQL Server code and so far I haven't seen any checks on the Entity Framework Core side.

@cincuranet
Copy link
Member

Can you provide repro?

@gilsonjoanelo
Copy link
Contributor

gilsonjoanelo commented Mar 20, 2024 via email

@cincuranet
Copy link
Member

Yes, can I send you a script in a console?

Does not make sense to me. I need code that uses FirebirdClient to repro it.

@gilsonjoanelo
Copy link
Contributor

gilsonjoanelo commented Mar 20, 2024 via email

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

No branches or pull requests

3 participants