|
|
Sponsor |
SQLForeignKeys result-set question: msg#00002db.mysql.odbc
Hi, I'm using mysql-connector-odbc-3.51.12. I have two tables "market" and "markettypes" and market has a foreign key on column type which is column markettype_id in the table marketypes. When I run SQLForeignKeys I get: PKTABLE_CAT:PKTABLE_SCHEM:PKTABLE_NAME:PKCOLUMN_NAME:FKTABLE_CAT:FKTABLE_SCHEM:F KTABLE_NAME:FKCOLUMN_NAME:KEY_SEQ:UPDATE_RULE:DELETE_RULE:FK_NAME:PK_NAME:DEFERR ABILITY: bet::markettype:`markettype_id`:bet::market:`type`:1:1:1:NULL:NULL:7: The colon is the column separator here. My question is, why is the PKCOLUMN_NAME and FKCOLUMN_NAME contents created with single quotes around the name. If I do: mysql> select * from INFORMATION_SCHEMA.KEY_COLUMN_USAGE where table_name = 'market' and referenced_table_name is not null; +--------------------+-------------------+-----------------+---------------+---- ----------+------------+-------------+------------------+----------------------- --------+-------------------------+-----------------------+--------------------- ---+ | CONSTRAINT_CATALOG | CONSTRAINT_SCHEMA | CONSTRAINT_NAME | TABLE_CATALOG | TABLE_SCHEMA | TABLE_NAME | COLUMN_NAME | ORDINAL_POSITION | POSITION_IN_UNIQUE_CONSTRAINT | REFERENCED_TABLE_SCHEMA | REFERENCED_TABLE_NAME | REFERENCED_COLUMN_NAME | +--------------------+-------------------+-----------------+---------------+---- ----------+------------+-------------+------------------+----------------------- --------+-------------------------+-----------------------+--------------------- ---+ | NULL | bet | market_ibfk_1 | NULL | bet | market | type | 1 | 1 | bet | markettype | markettype_id | +--------------------+-------------------+-----------------+---------------+---- ----------+------------+-------------+------------------+----------------------- --------+-------------------------+-----------------------+--------------------- ---+ 1 row in set (0.00 sec) The column names are without the single quotes. I had a quick look in myodbc odbc driver code and could not spot anything doing this. Martin -- Martin J. Evans Easysoft Ltd, UK Development -- MySQL ODBC Mailing List For list archives: http://lists.mysql.com/myodbc To unsubscribe: http://lists.mysql.com/myodbc?unsub=gcdmo-myodbc@xxxxxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | ODBC v5, Xavier Pointe |
|---|---|
| Next by Date: | Regression in MyODBC 3.51.12, ddi |
| Previous by Thread: | ODBC v5, Xavier Pointe |
| Next by Thread: | RE: SQLForeignKeys result-set question, jbonnett |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|