Fix for triggers
This commit is contained in:
		
							parent
							
								
									55854883c8
								
							
						
					
					
						commit
						96563c0971
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		|  | @ -460,9 +460,9 @@ namespace Util{ | ||||||
|   /// For other types, returns the maximum size possible.
 |   /// For other types, returns the maximum size possible.
 | ||||||
|   /// Returns 0 if the field does not exist.
 |   /// Returns 0 if the field does not exist.
 | ||||||
|   uint32_t RelAccX::getSize(const std::string &name, uint64_t recordNo) const{ |   uint32_t RelAccX::getSize(const std::string &name, uint64_t recordNo) const{ | ||||||
|     if (!fields.count(name) || !isRecordAvailable(recordNo)){return 0;} |  | ||||||
|     const RelAccXFieldData &fd = fields.at(name); |     const RelAccXFieldData &fd = fields.at(name); | ||||||
|     if ((fd.type & 0xF0) == RAX_STRING){ |     if ((fd.type & 0xF0) == RAX_STRING){ | ||||||
|  |       if (!fields.count(name) || !isRecordAvailable(recordNo)){return 0;} | ||||||
|       return strnlen(RECORD_POINTER, fd.size); |       return strnlen(RECORD_POINTER, fd.size); | ||||||
|     }else{ |     }else{ | ||||||
|       return fd.size; |       return fd.size; | ||||||
|  |  | ||||||
|  | @ -334,6 +334,7 @@ namespace Controller{ | ||||||
|           ++i; |           ++i; | ||||||
|         } |         } | ||||||
|         tPage.setRCount(std::min(i, max)); |         tPage.setRCount(std::min(i, max)); | ||||||
|  |         tPage.setEndPos(std::min(i, max)); | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Thulinma
						Thulinma