14071408140914101411141214131414141514161417
} RowIterator refiterator = c.findFkRef(session, row.getData()); if (!refiterator.hasNext()) { refiterator.release(); continue; } while (refiterator.hasNext()) {
14381439144014411442144314441445144614471448
try { result = navigator.addRow(refRow); } catch (HsqlException e) { String[] info = getConstraintInfo(c); refiterator.release(); throw Error.error(null, ErrorCode.X_27000, ErrorCode.CONSTRAINT, info); }
15061507150815091510151115121513151415151516
== SchemaObject.ReferentialAction .NO_ACTION ? ErrorCode.X_23504 : ErrorCode.X_23001; String[] info = getConstraintInfo(c); refiterator.release(); throw Error.error(null, errorCode, ErrorCode.CONSTRAINT, info); } default :
15231524152515261527152815291530153115321533
c.core.refTable.getColumnTypes(), c.core.refCols); } catch (HsqlException e) { String[] info = getConstraintInfo(c); refiterator.release(); throw Error.error(null, ErrorCode.X_27000, ErrorCode.CONSTRAINT, info); }
15451546154715481549155015511552155315541555
refRow, refData, c.core.refCols, path); path.remove(c); } refiterator.release(); } } static String[] getConstraintInfo(Constraint c) {
28752876287728782879288028812882288328842885
RowIterator it = getPrimaryIndex().findFirstRow(session, store, data, primaryKeyColsSequence); row = it.getNextRow(); it.release(); } else if (bestIndex == null) { RowIterator it = rowIterator(session); while (true) { row = it.getNextRow();
28932894289528962897289828992900290129022903
colTypes) == 0) { break; } } it.release(); } else { RowIterator it = bestIndex.findFirstRow(session, store, data); while (true) { row = it.getNextRow();
29212922292329242925292629272928292929302931
colTypes) == 0) { break; } } it.release(); } return row; }
10451046104710481049105010511052105310541055
lookupStore, ValuePool.getInt(currentRow.getPos()), OpTypes.EQUAL); result = !lookupIterator.hasNext(); lookupIterator.release(); if (result) { currentData = currentRow.getData(); if (rangeVar.nonIndexWhereCondition != null
955956957958959960961962963964965
if (delete && !isUpdate && !refrow.isDeleted(session)) { reftable.deleteRowAsTriggeredAction(session, refrow); } } } finally { refiterator.release(); } } } Object[] getMergeInsertData(Session session) {