enumUpsertColumnSource
enum UpsertColumnSource
Which of the two rows an UPSERT assignment reads a column from.
A conflicting write has two rows in play: the one already there and the one the statement was trying to write. Every dialect spells the difference differently and this is what they all mean.
Cases§
case Existingcase IncomingTest cases 26§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 25
ConflictSearchTest::testOfIsNothingWhereTheIncomingRowTakesNoPartInTheNarrowedKeycallsConflictSearchTest::testOfLeavesOutTheRowsAlreadyThereThatTakeNoPartcallsConflictSearchTest::testOfReportsTheRowUnderTheKeyTheCallerKnowsItBycallsMutationImpactTest::testSkippedConditionalUpsertHasNoAffectedOrReturningRowscallsInsertMutationTest::testInsertIgnoreUsesPartialConflictPredicatecallsPrimaryParserTest::testColumnSourceResolvesIncomingAndExistingQualifierscallsExpressionReaderTest::testColumnSourceDistinguishesIncomingAliascallsPrimaryExpressionParserTest::testColumnSourceDistinguishesTableAndExcludedcallsUpsertExpressionTest::testColumnReadsTheSelectedRowAndColumncallsUpsertExpressionTest::testEvaluatesNullNumericTextAndCaseInsensitiveColumnBoundariescallsUpsertExpressionTest::testLiteralAnswersTheValueTheStatementWrotecallsUpsertExpressionTest::testOperandRefusesAColumnTheRowDoesNotCarrycallsUpsertMutationTest::testApplyAccumulatesExistingAndIncomingValuescallsUpsertMutationTest::testApplyAccumulatesSequentialConflictsAgainstLatestRowcallsUpsertMutationTest::testApplyUpdatesExistingRowOnUniqueKeyConflictcallsUpsertMutationTest::testApplyUsesConflictPredicateAndReportsOnlyAppliedRowscallsUpsertMutationTest::testApplyWithExcludedColumnReferencecallsUpsertMutationTest::testApplyWithExcludedQuotedColumnReferencecallsUpsertMutationTest::testApplyWithUpdateValuesExpressioncallsUpsertMutationTest::testConflictPredicateRestrictsIncomingAndExistingCandidateRowscallsUpsertMutationTest::testDatabaseEvaluatedBatchDetectsConflictsWithRowsInsertedEarlierInStatementcallsUpsertMutationTest::testDatabaseEvaluatedBatchReevaluatesAgainstLatestConflictRowcallsUpsertMutationTest::testDatabaseEvaluatedPredicateFallsBackWhenMetadataIsMissingcallsUpsertMutationTest::testSkippedConditionalRowDoesNotStopFollowingRowscallsUpsertUpdateTest::testWithColumnReadsTheExpressionAgainstTheRowAsTheStatementLeftItcalls
Relations§
Constant reads 11
- class-const ZtdQuery\Shadow\Mutation\UpsertExpression::evaluate() packages/ztd-query-core/src/Shadow/Mutation/UpsertExpression.php:150
- class-const ZtdQuery\Platform\MySql\Shadow\Mutation\Upsert\ExpressionReader::parseValuesReference() packages/ztd-query-mysql/src/Shadow/Mutation/Upsert/ExpressionReader.php:243
- class-const ZtdQuery\Platform\MySql\Shadow\Mutation\Upsert\ExpressionReader::columnSource() packages/ztd-query-mysql/src/Shadow/Mutation/Upsert/ExpressionReader.php:257
- class-const ZtdQuery\Platform\MySql\Shadow\Mutation\Upsert\ExpressionReader::columnSource() packages/ztd-query-mysql/src/Shadow/Mutation/Upsert/ExpressionReader.php:260
- class-const ZtdQuery\Platform\MySql\Shadow\Mutation\Upsert\ExpressionReader::parseColumnReference() packages/ztd-query-mysql/src/Shadow/Mutation/Upsert/ExpressionReader.php:325
- class-const ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::columnSource() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:77
- class-const ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::columnSource() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:80
- class-const ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::column() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:111
- class-const ZtdQuery\Platform\Sqlite\Shadow\Mutation\Upsert\PrimaryExpressionParser::columnSource() packages/ztd-query-sqlite/src/Shadow/Mutation/Upsert/PrimaryExpressionParser.php:75
- class-const ZtdQuery\Platform\Sqlite\Shadow\Mutation\Upsert\PrimaryExpressionParser::columnSource() packages/ztd-query-sqlite/src/Shadow/Mutation/Upsert/PrimaryExpressionParser.php:78
- class-const ZtdQuery\Platform\Sqlite\Shadow\Mutation\Upsert\PrimaryExpressionParser::parseColumn() packages/ztd-query-sqlite/src/Shadow/Mutation/Upsert/PrimaryExpressionParser.php:114
Type declarations 5
- type ZtdQuery\Shadow\Mutation\UpsertExpression packages/ztd-query-core/src/Shadow/Mutation/UpsertExpression.php:43
- type ZtdQuery\Shadow\Mutation\UpsertExpression packages/ztd-query-core/src/Shadow/Mutation/UpsertExpression.php:74
- type ZtdQuery\Platform\MySql\Shadow\Mutation\Upsert\ExpressionReader packages/ztd-query-mysql/src/Shadow/Mutation/Upsert/ExpressionReader.php:250
- type ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:74
- type ZtdQuery\Platform\Sqlite\Shadow\Mutation\Upsert\PrimaryExpressionParser packages/ztd-query-sqlite/src/Shadow/Mutation/Upsert/PrimaryExpressionParser.php:72