classUpsertColumn
final class UpsertColumn
Reads a column off a row the way SQL names one.
A column named in an expression and the same column as a driver spells it back need not agree on case, so the lookup does not either. A name nothing answers to is refused: quietly reading it as null would make the assignment that depends on it silently wrong.
Type Aliases§
Row = import from TableDefinitionRowValue = import from TableDefinitionMethods§
Answers what a row carries under a column name.
Parameters
$row | Row | Row to read |
$column | string | Column as the statement named it |
Returns
RowValue The value it carriesThrows
UnsupportedSqlException When the row carries no such columnTest cases 5
UpsertColumnTest::testOfAnswersANullTheRowActuallyCarriescovers and callsUpsertColumnTest::testOfAnswersWhatTheRowCarriesUnderTheNamecovers and callsUpsertColumnTest::testOfDoesNotMindHowTheNameWasCasedcovers and callsUpsertColumnTest::testOfNamesTheColumnItRefusedcovers and callsUpsertColumnTest::testOfRefusesANameTheRowAnswersToInNoCasingcovers and calls
Called from 1
Calls 2
- function-call
strcasecmpline 36 - new UnsupportedSqlException line 41
Test cases 11§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 5
UpsertColumnTest::testOfAnswersANullTheRowActuallyCarriescovers and callsUpsertColumnTest::testOfAnswersWhatTheRowCarriesUnderTheNamecovers and callsUpsertColumnTest::testOfDoesNotMindHowTheNameWasCasedcovers and callsUpsertColumnTest::testOfNamesTheColumnItRefusedcovers and callsUpsertColumnTest::testOfRefusesANameTheRowAnswersToInNoCasingcovers and calls
Other tests reaching this symbol 6
ConflictSearchTestcallsMutationImpactTestcallsInsertMutationTestcallsUpsertExpressionTestcallsUpsertMutationTestcallsUpsertUpdateTestcalls