Increased maximum element names length in columns

This commit is contained in:
Celine Mercier
2017-07-27 19:44:49 +02:00
parent 89e2f80fd8
commit c5f3fdc295
2 changed files with 4 additions and 4 deletions

View File

@ -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)
{
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;
}

View File

@ -28,10 +28,10 @@
#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
* are used ("0\01\02\0...\0n"), considering ELEMENTS_NAMES_MAX.
#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. // TODO not up to date
*/
#define COLUMN_GROWTH_FACTOR (2) /**< The growth factor when a column is enlarged.
*/