12191220122112221223122412251226122712281229
if (restartIdentity && targetTable.identitySequence != null) { targetTable.identitySequence.reset(); } } finally { it.release(); } if (!hasData) { session.addWarning(HsqlException.noDataCondition); }
14751476147714781479148014811482148314841485
} RowIterator refiterator = c.findFkRef(session, row.getData()); if (!refiterator.hasNext()) { refiterator.release(); continue; } while (refiterator.hasNext()) {
15061507150815091510151115121513151415151516
try { result = navigator.addRow(refRow); } catch (HsqlException e) { String[] info = getConstraintInfo(c); refiterator.release(); throw Error.error(null, ErrorCode.X_27000, ErrorCode.CONSTRAINT, info); }
15751576157715781579158015811582158315841585
== 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 :
15921593159415951596159715981599160016011602
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); }
16141615161616171618161916201621162216231624
refRow, refData, c.core.refCols, path); path.remove(c); } refiterator.release(); } } static String[] getConstraintInfo(Constraint c) {
27772778277927802781278227832784278527862787
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();
27952796279727982799280028012802280328042805
colTypes) == 0) { break; } } it.release(); } else { RowIterator it = bestIndex.findFirstRow(session, store, data); while (true) { row = it.getNextRow();
28232824282528262827282828292830283128322833
colTypes) == 0) { break; } } it.release(); } if (row == null) { return; }
11501151115211531154115511561157115811591160
if (restartIdentity && targetTable.identitySequence != null) { targetTable.identitySequence.reset(); } } finally { it.release(); } return Result.updateOneResult; }