Page 1 of 1

ZConnection.UseMetadata, what is it for?

Posted: 09.02.2022, 21:08
by hamacker
There is a property ZConnection.UseMetadata that can be enabled or disable, what is it for?
Is for my application to consume something?

I´am learning about zeo to create this page to help brazilian comunity:
https://gladiston.net.br/?page_id=757

Re: ZConnection.UseMetadata, what is it for?

Posted: 10.02.2022, 09:41
by aehimself
Hello,

Fresh from the source:

Code: Select all

    /// <summary>Are metadata used? If <c>True</c> then we can determine if
    ///  columns are writeable or not. This is required for generating automatic
    ///  updates.</summary>
    /// <returns><c>True</c> if metainformations are turned on; <c>False</c>
    ///  otherwise.</returns>
Just a small heads-up, you mention Zeos 7.3 in your article but that version never officially existed.

Re: ZConnection.UseMetadata, what is it for?

Posted: 10.02.2022, 09:59
by marsupilami
Hello,

UseMetadata tells Zeos drivers to not fetch metadata from the database. Some drivers need metadata at some point to get enough information for building insert / update / delete statements. So usually it is best to keep this option enabled. Otherwise Zeos could behave unexpectedly like not being able to determine field types correctly or making all data sets read only. Disabling UseMetadata can help in some rare corner cases.

Best regards,

Jan

Re: ZConnection.UseMetadata, what is it for?

Posted: 10.02.2022, 16:09
by hamacker
I fix my article:
https://gladiston.net.br/?page_id=757

More late, I will translate to english.
Thank you guys.

Re: ZConnection.UseMetadata, what is it for?

Posted: 10.02.2022, 16:49
by aehimself
Thank you for using, advertising and helping others to be able to use Zeos :)