mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
merged ndb api blobs
ndb/include/ndbapi/Ndb.hpp: Auto merged ndb/include/ndbapi/NdbApi.hpp: Auto merged ndb/include/ndbapi/NdbConnection.hpp: Auto merged ndb/include/ndbapi/NdbOperation.hpp: Auto merged ndb/src/kernel/blocks/dbdict/Dbdict.cpp: Auto merged ndb/src/kernel/blocks/dbtc/DbtcMain.cpp: Auto merged ndb/src/ndbapi/Makefile_old: Auto merged ndb/src/ndbapi/NdbConnection.cpp: Auto merged ndb/src/ndbapi/NdbDictionary.cpp: Auto merged ndb/src/ndbapi/NdbDictionaryImpl.cpp: Auto merged ndb/src/ndbapi/NdbDictionaryImpl.hpp: Auto merged ndb/src/ndbapi/NdbIndexOperation.cpp: Auto merged ndb/src/ndbapi/NdbOperationDefine.cpp: Auto merged ndb/src/ndbapi/NdbOperationScan.cpp: Auto merged ndb/src/ndbapi/NdbOperationSearch.cpp: Auto merged ndb/src/ndbapi/NdbScanOperation.cpp: Auto merged ndb/src/ndbapi/Ndbinit.cpp: Auto merged ndb/src/ndbapi/Ndblist.cpp: Auto merged ndb/src/old_files/client/odbc/codegen/SimpleGram.ypp: Auto merged ndb/src/old_files/client/odbc/codegen/SimpleScan.lpp: Auto merged ndb/src/old_files/client/odbc/common/DataType.cpp: Auto merged ndb/src/old_files/client/odbc/common/DataType.hpp: Auto merged ndb/test/ndbapi/Makefile_old: Auto merged ndb/tools/ndbsql.cpp: Auto merged
This commit is contained in:
@ -91,4 +91,9 @@
|
||||
#define MAX_TTREE_PREF_SIZE 4 // words in min/max prefix each
|
||||
#define MAX_TTREE_NODE_SLACK 3 // diff between max and min occupancy
|
||||
|
||||
/*
|
||||
* Blobs.
|
||||
*/
|
||||
#define NDB_BLOB_HEAD_SIZE 2 // sizeof(NdbBlob::Head) >> 2
|
||||
|
||||
#endif
|
||||
|
@ -307,7 +307,9 @@ public:
|
||||
ExtBinary = NdbSqlUtil::Type::Binary,
|
||||
ExtVarbinary = NdbSqlUtil::Type::Varbinary,
|
||||
ExtDatetime = NdbSqlUtil::Type::Datetime,
|
||||
ExtTimespec = NdbSqlUtil::Type::Timespec
|
||||
ExtTimespec = NdbSqlUtil::Type::Timespec,
|
||||
ExtBlob = NdbSqlUtil::Type::Blob,
|
||||
ExtClob = NdbSqlUtil::Type::Clob
|
||||
};
|
||||
|
||||
// Attribute data interpretation
|
||||
@ -430,6 +432,13 @@ public:
|
||||
AttributeSize = DictTabInfo::an8Bit;
|
||||
AttributeArraySize = 12 * AttributeExtLength;
|
||||
return true;
|
||||
case DictTabInfo::ExtBlob:
|
||||
case DictTabInfo::ExtClob:
|
||||
AttributeType = DictTabInfo::StringType;
|
||||
AttributeSize = DictTabInfo::an8Bit;
|
||||
// head + inline part [ attr precision ]
|
||||
AttributeArraySize = (NDB_BLOB_HEAD_SIZE << 2) + AttributeExtPrecision;
|
||||
return true;
|
||||
};
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user