mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
- Add a new table option SEPINDEX (not used yet) and remove an unused
parameter to all catalog info functions. modified: storage/connect/catalog.h storage/connect/filamvct.cpp storage/connect/filamzip.cpp storage/connect/ha_connect.cc storage/connect/mycat.cc storage/connect/mycat.h storage/connect/reldef.cpp storage/connect/reldef.h storage/connect/tabdos.cpp storage/connect/tabfmt.cpp storage/connect/tabmul.cpp storage/connect/tabmysql.cpp storage/connect/tabodbc.cpp storage/connect/tabsys.cpp storage/connect/tabtbl.cpp storage/connect/tabvct.cpp storage/connect/tabwmi.cpp storage/connect/tabxml.cpp storage/connect/xindex.cpp
This commit is contained in:
@@ -417,10 +417,10 @@ bool CSVDEF::DefineAM(PGLOBAL g, LPCSTR am, int poff)
|
||||
if (DOSDEF::DefineAM(g, "CSV", poff))
|
||||
return true;
|
||||
|
||||
Cat->GetCharCatInfo(Name, "Separator", ",", buf, sizeof(buf));
|
||||
Cat->GetCharCatInfo("Separator", ",", buf, sizeof(buf));
|
||||
Sep = (strlen(buf) == 2 && buf[0] == '\\' && buf[1] == 't') ? '\t' : *buf;
|
||||
Quoted = Cat->GetIntCatInfo(Name, "Quoted", -1);
|
||||
Cat->GetCharCatInfo(Name, "Qchar", "", buf, sizeof(buf));
|
||||
Quoted = Cat->GetIntCatInfo("Quoted", -1);
|
||||
Cat->GetCharCatInfo("Qchar", "", buf, sizeof(buf));
|
||||
Qot = *buf;
|
||||
|
||||
if (Qot && Quoted < 0)
|
||||
@@ -429,9 +429,9 @@ bool CSVDEF::DefineAM(PGLOBAL g, LPCSTR am, int poff)
|
||||
Qot = '"';
|
||||
|
||||
Fmtd = (!Sep || (am && (*am == 'F' || *am == 'f')));
|
||||
Header = (Cat->GetIntCatInfo(Name, "Header", 0) != 0);
|
||||
Maxerr = Cat->GetIntCatInfo(Name, "Maxerr", 0);
|
||||
Accept = (Cat->GetIntCatInfo(Name, "Accept", 0) != 0);
|
||||
Header = (Cat->GetIntCatInfo("Header", 0) != 0);
|
||||
Maxerr = Cat->GetIntCatInfo("Maxerr", 0);
|
||||
Accept = (Cat->GetIntCatInfo("Accept", 0) != 0);
|
||||
return false;
|
||||
} // end of DefineAM
|
||||
|
||||
|
Reference in New Issue
Block a user