mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
- Add (limited) support for UPDATE and DELETE to ODBC tables
(also provide the possibility to issue NOTE warnings) modified: storage/connect/connect.cc storage/connect/ha_connect.cc storage/connect/ha_connect.h storage/connect/odbconn.cpp storage/connect/odbconn.h storage/connect/plgdbsem.h storage/connect/tabodbc.cpp storage/connect/tabodbc.h - Return proper error number when modifying read only tables modified: storage/connect/connect.cc storage/connect/ha_connect.cc storage/connect/ha_connect.h storage/connect/mysql-test/connect/r/bin.result storage/connect/mysql-test/connect/r/csv.result storage/connect/mysql-test/connect/r/dbf.result storage/connect/mysql-test/connect/r/fix.result storage/connect/mysql-test/connect/r/ini.result storage/connect/mysql-test/connect/r/vec.result storage/connect/mysql-test/connect/t/bin.test storage/connect/mysql-test/connect/t/csv.test storage/connect/mysql-test/connect/t/dbf.test storage/connect/mysql-test/connect/t/fix.test storage/connect/mysql-test/connect/t/ini.test storage/connect/mysql-test/connect/t/vec.test storage/connect/table.cpp storage/connect/taboccur.cpp storage/connect/tabpivot.cpp storage/connect/tabutil.cpp storage/connect/tabwmi.cpp storage/connect/tabxcl.cpp
This commit is contained in:
@@ -873,7 +873,8 @@ ODBConn::ODBConn(PGLOBAL g, TDBODBC *tdbp)
|
||||
m_Connect = NULL;
|
||||
m_Updatable = true;
|
||||
m_Transact = false;
|
||||
m_IDQuoteChar = '\'';
|
||||
m_IDQuoteChar[0] = '"';
|
||||
m_IDQuoteChar[1] = 0;
|
||||
//*m_ErrMsg = '\0';
|
||||
} // end of ODBConn
|
||||
|
||||
@@ -1232,16 +1233,9 @@ void ODBConn::GetConnectInfo()
|
||||
SQL_MODE_READ_ONLY);
|
||||
#endif // 0
|
||||
|
||||
// Cache the quote char to use when constructing SQL
|
||||
char QuoteChar[2];
|
||||
|
||||
// Get the quote char to use when constructing SQL
|
||||
rc = SQLGetInfo(m_hdbc, SQL_IDENTIFIER_QUOTE_CHAR,
|
||||
QuoteChar, sizeof(QuoteChar), &nResult);
|
||||
|
||||
if (Check(rc) && nResult == 1)
|
||||
m_IDQuoteChar = QuoteChar[0];
|
||||
else
|
||||
m_IDQuoteChar = ' ';
|
||||
m_IDQuoteChar, sizeof(m_IDQuoteChar), &nResult);
|
||||
|
||||
if (trace)
|
||||
htrc("DBMS: %s, Version: %s\n",
|
||||
|
Reference in New Issue
Block a user