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
Add support for DataSourceInformation Schema #795
Conversation
Signed-off-by: Vincent DARON <vda@dfakto.com>
Signed-off-by: Vincent DARON <vda@dfakto.com>
Signed-off-by: Vincent DARON <vda@dfakto.com>
|
||
var row = dataTable.NewRow(); | ||
row["CompositeIdentifierSeparatorPattern"] = @"\."; | ||
row["DataSourceProductName"] = "MysqlConnector"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DataSourceProductName
is "The name of the product accessed by the provider, such as 'Oracle' or 'SQLServer'." (https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/common-schema-collections)
I don't know if we can accurately determine the remote database (MySQL, Percona, MariaDB, Amazon, etc.) so it might be best to just return "MySQL"
.
Thanks for the contribution! I'll look over it shortly. |
row["CompositeIdentifierSeparatorPattern"] = @"\."; | ||
row["DataSourceProductName"] = "MysqlConnector"; | ||
row["DataSourceProductVersion"] = m_connection.ServerVersion; | ||
row["DataSourceProductVersionNormalized"] = m_connection.Session.ServerVersion.Version.ToString(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A normalized version for the data source, such that it can be compared with
String.Compare()
.
There would need to be some padding here (e.g., nn.nn.nnnn
) to make sure 10 doesn't compare between 1 and 2.
Change DataSourceProductVersionNormalized to have a String Comparable result Signed-off-by: Vincent DARON <vda@dfakto.com>
Added in 0.63.2. |
Some progress on the #375 issue