added more extra cases for get prim size

This commit is contained in:
Partho
2025-05-04 15:17:40 -04:00
parent 616a7b6b67
commit 6d6beda20e

View File

@ -120,6 +120,14 @@ int getPrimSize(TableNode *definition) {
//special case to return size for reference to an array
return 8;
}
if(getAdInfoType(definition) == TYPE_FUNCTION_TYPE){
//special case to return size for reference to a function
return 8;
}
if(getAdInfoType(definition) == TYPE_RECORD_TYPE){
//special case to return size for reference to a record
return getRecTotal(definition);
}
if (definition->additionalinfo == NULL) {
printdebug("node has NULL additionalinfo. Invalid.");
return -1;