Increased maximum element names length in columns
This commit is contained in:
@ -615,7 +615,7 @@ static int set_elements_names(OBIDMS_column_p column, char* elements_names, int
|
|||||||
if (elts_names_length+2 > ELEMENTS_NAMES_MAX)
|
if (elts_names_length+2 > ELEMENTS_NAMES_MAX)
|
||||||
{
|
{
|
||||||
obi_set_errno(OBICOL_UNKNOWN_ERROR);
|
obi_set_errno(OBICOL_UNKNOWN_ERROR);
|
||||||
obidebug(1, "\nError: element names too long (max: %d)", ELEMENTS_NAMES_MAX);
|
obidebug(1, "\nError: element names too long (%d, max: %d)", elts_names_length+2, ELEMENTS_NAMES_MAX);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,10 +28,10 @@
|
|||||||
#include "obiblob_indexer.h"
|
#include "obiblob_indexer.h"
|
||||||
|
|
||||||
|
|
||||||
#define ELEMENTS_NAMES_MAX (2048) /**< The maximum length of the list of elements names. // TODO Discuss
|
#define ELEMENTS_NAMES_MAX (10240) /**< The maximum length of the list of elements names. // TODO Discuss
|
||||||
*/
|
*/
|
||||||
#define NB_ELTS_MAX_IF_DEFAULT_NAME (539) /**< The maximum number of elements per line if the default element names
|
#define NB_ELTS_MAX_IF_DEFAULT_NAME (10240) /**< The maximum number of elements per line if the default element names
|
||||||
* are used ("0\01\02\0...\0n"), considering ELEMENTS_NAMES_MAX.
|
* are used ("0\01\02\0...\0n"), considering ELEMENTS_NAMES_MAX. // TODO not up to date
|
||||||
*/
|
*/
|
||||||
#define COLUMN_GROWTH_FACTOR (2) /**< The growth factor when a column is enlarged.
|
#define COLUMN_GROWTH_FACTOR (2) /**< The growth factor when a column is enlarged.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user