mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
Adding table-cacheOf concept; ability to add a child record from child-list widget
This commit is contained in:
@ -414,7 +414,7 @@ public abstract class AbstractRDBMSAction implements QActionInterface
|
||||
case IS_BLANK:
|
||||
{
|
||||
clause += " IS NULL";
|
||||
if(isString(field.getType()))
|
||||
if(field.getType().isStringLike())
|
||||
{
|
||||
clause += " OR " + column + " = ''";
|
||||
}
|
||||
@ -424,7 +424,7 @@ public abstract class AbstractRDBMSAction implements QActionInterface
|
||||
case IS_NOT_BLANK:
|
||||
{
|
||||
clause += " IS NOT NULL";
|
||||
if(isString(field.getType()))
|
||||
if(field.getType().isStringLike())
|
||||
{
|
||||
clause += " AND " + column + " != ''";
|
||||
}
|
||||
@ -479,16 +479,6 @@ public abstract class AbstractRDBMSAction implements QActionInterface
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
**
|
||||
*******************************************************************************/
|
||||
private static boolean isString(QFieldType fieldType)
|
||||
{
|
||||
return fieldType == QFieldType.STRING || fieldType == QFieldType.TEXT || fieldType == QFieldType.HTML || fieldType == QFieldType.PASSWORD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
**
|
||||
*******************************************************************************/
|
||||
|
@ -136,7 +136,7 @@ public class RDBMSQueryAction extends AbstractRDBMSAction implements QueryInterf
|
||||
// execute the query - iterate over results //
|
||||
//////////////////////////////////////////////
|
||||
QueryOutput queryOutput = new QueryOutput(queryInput);
|
||||
System.out.println(sql);
|
||||
// System.out.println(sql);
|
||||
PreparedStatement statement = createStatement(connection, sql.toString(), queryInput);
|
||||
QueryManager.executeStatement(statement, ((ResultSet resultSet) ->
|
||||
{
|
||||
|
Reference in New Issue
Block a user