dont throw exception for unknown types
This commit is contained in:
@@ -6,7 +6,7 @@ var index = [];
|
||||
function createPart(part): any {
|
||||
var def = index[part.type];
|
||||
if (!def) {
|
||||
throw { message: 'Could not find query part ' + part.type };
|
||||
return null;
|
||||
}
|
||||
|
||||
return new SqlPart(part, def);
|
||||
|
||||
Reference in New Issue
Block a user