mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
Adding QFieldType.LONG
This commit is contained in:
@ -154,7 +154,7 @@ public abstract class AbstractRDBMSAction implements QActionInterface
|
||||
if("".equals(value))
|
||||
{
|
||||
QFieldType type = field.getType();
|
||||
if(type.equals(QFieldType.INTEGER) || type.equals(QFieldType.DECIMAL) || type.equals(QFieldType.DATE) || type.equals(QFieldType.DATE_TIME) || type.equals(QFieldType.BOOLEAN))
|
||||
if(type.equals(QFieldType.INTEGER) || type.equals(QFieldType.LONG) || type.equals(QFieldType.DECIMAL) || type.equals(QFieldType.DATE) || type.equals(QFieldType.DATE_TIME) || type.equals(QFieldType.BOOLEAN))
|
||||
{
|
||||
value = null;
|
||||
}
|
||||
@ -875,6 +875,10 @@ public abstract class AbstractRDBMSAction implements QActionInterface
|
||||
{
|
||||
return (QueryManager.getInteger(resultSet, i));
|
||||
}
|
||||
case LONG:
|
||||
{
|
||||
return (QueryManager.getLong(resultSet, i));
|
||||
}
|
||||
case DECIMAL:
|
||||
{
|
||||
return (QueryManager.getBigDecimal(resultSet, i));
|
||||
|
@ -143,7 +143,7 @@ public class RDBMSAggregateAction extends AbstractRDBMSAction implements Aggrega
|
||||
QFieldType fieldType = aggregate.getFieldType();
|
||||
if(fieldType == null)
|
||||
{
|
||||
if(field.getType().equals(QFieldType.INTEGER) && (aggregate.getOperator().equals(AggregateOperator.AVG)))
|
||||
if((field.getType().equals(QFieldType.INTEGER) || field.getType().equals(QFieldType.LONG)) && (aggregate.getOperator().equals(AggregateOperator.AVG)))
|
||||
{
|
||||
fieldType = QFieldType.DECIMAL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user