mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
- Add support to NULL values. This concern the MYSQL
and ODBC table types. Not supported yet for indexes. modified: storage/connect/colblk.cpp storage/connect/colblk.h storage/connect/connect.cc storage/connect/ha_connect.cc storage/connect/tabmysql.cpp storage/connect/tabodbc.cpp storage/connect/valblk.cpp storage/connect/valblk.h storage/connect/value.cpp storage/connect/value.h storage/connect/xindex.cpp
This commit is contained in:
@@ -109,14 +109,15 @@ MYSQLDEF::MYSQLDEF(void)
|
||||
/* An Example: */
|
||||
/* */
|
||||
/* CREATE TABLE t1 (id int(32)) */
|
||||
/* ENGINE="FEDERATEDX" */
|
||||
/* ENGINE="CONNECT" TABLE_TYPE="MYSQL" */
|
||||
/* CONNECTION="mysql://joe:pwd@192.168.1.111:9308/dbname/tabname"; */
|
||||
/* */
|
||||
/* CREATE TABLE t2 ( */
|
||||
/* id int(4) NOT NULL auto_increment, */
|
||||
/* name varchar(32) NOT NULL, */
|
||||
/* PRIMARY KEY(id) */
|
||||
/* ) ENGINE="FEDERATEDX" CONNECTION="my_conn"; (NIY) */
|
||||
/* ) ENGINE="CONNECT" TABLE_TYPE="MYSQL" */
|
||||
/* CONNECTION="my_conn"; (NIY) */
|
||||
/* */
|
||||
/* 'password' and 'port' are both optional. */
|
||||
/* */
|
||||
@@ -1040,8 +1041,12 @@ void MYSQLCOL::ReadColumn(PGLOBAL g)
|
||||
|
||||
if ((buf = ((PTDBMY)To_Tdb)->Myc.GetCharField(Rank)))
|
||||
Value->SetValue_char(buf, Long);
|
||||
else
|
||||
else {
|
||||
if (Nullable)
|
||||
Value->SetNull(true);
|
||||
|
||||
Value->Reset(); // Null value
|
||||
} // endelse
|
||||
|
||||
} // end of ReadColumn
|
||||
|
||||
|
Reference in New Issue
Block a user