classTableValueConstructorRule
final class TableValueConstructorRule
implements RewriteRule
sql_resolver.cc disallows empty rows and DEFAULT outside an INSERT table value constructor.
Methods§
public function rewrite(TerminalSequence $sequence): TerminalSequenceCompletes empty query rows with NULL and replaces bare DEFAULT while preserving INSERT sources.
Parameters
$sequence | TerminalSequence |
Returns
Test cases 60
TableValueConstructorRuleTest::testRewriteCompletesBothRowsOfAnInsertSetOperationcovers and callsTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRowscallsTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#0coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#1coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#10coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#11coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#12coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#13coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#14coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#15coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#16coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#17coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#18coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#19coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#2coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#20coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#21coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#22coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#23coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#24coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#25coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#26coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#27coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#28coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#29coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#3coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#30coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#31coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#32coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#33coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#34coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#35coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#36coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#37coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#38coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#39coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#4coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#40coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#41coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#42coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#43coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#44coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#45coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#46coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#47coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#48coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#49coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#5coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#50coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#51coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#52coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#53coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#54coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#55coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#6coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#7coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#8coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#9coversTableValueConstructorRuleTest::testRewritePreservesAbsentRowsAndMissingValueProductionscovers and callsTableValueConstructorRuleTest::testRewriteRecordsEmptyProductionAndReplacementProvenancecovers and calls
Calls 5
- method-call TerminalSequence::occurrences() line 24
- method-call TerminalSequence::range() line 25
- method-call TableValueConstructorRule::isInsertSource() line 30
- method-call TerminalSequence::child() line 33
- function-call
countline 45
public function isInsertSource(TerminalSequence $sequence, TerminalOccurrence $origin): boolMirrors PT_insert's direct-constructor conversion through parentheses, excluding set operations and subqueries.
Parameters
$sequence | TerminalSequence | |
$origin | TerminalOccurrence |
Returns
boolTest cases 61
TableValueConstructorRuleTest::testIsInsertSourceExcludesSetOperationscallsTableValueConstructorRuleTest::testIsInsertSourceExcludesSetOperations#0coversTableValueConstructorRuleTest::testIsInsertSourceExcludesSetOperations#1coversTableValueConstructorRuleTest::testIsInsertSourceExcludesSetOperations#2coversTableValueConstructorRuleTest::testIsInsertSourceExcludesSetOperations#3coversTableValueConstructorRuleTest::testIsInsertSourceExcludesSetOperations#4coversTableValueConstructorRuleTest::testIsInsertSourceExcludesSetOperations#5coversTableValueConstructorRuleTest::testIsInsertSourceExcludesSetOperations#6coversTableValueConstructorRuleTest::testIsInsertSourceExcludesSetOperations#7coversTableValueConstructorRuleTest::testIsInsertSourceExcludesSetOperations#8coversTableValueConstructorRuleTest::testRewriteCompletesBothRowsOfAnInsertSetOperationcoversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#0coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#1coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#10coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#11coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#12coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#13coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#14coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#15coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#16coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#17coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#18coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#19coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#2coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#20coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#21coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#22coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#23coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#24coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#25coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#26coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#27coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#28coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#29coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#3coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#30coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#31coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#32coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#33coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#34coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#35coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#36coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#37coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#38coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#39coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#4coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#40coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#41coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#42coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#43coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#44coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#45coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#46coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#47coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#5coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#6coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#7coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#8coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#9coversTableValueConstructorRuleTest::testRewritePreservesAbsentRowsAndMissingValueProductionscoversTableValueConstructorRuleTest::testRewriteRecordsEmptyProductionAndReplacementProvenancecovers
Called from 1
Test cases 76§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 70
TableValueConstructorRuleTest::testIsInsertSourceExcludesSetOperationscallsTableValueConstructorRuleTest::testIsInsertSourceExcludesSetOperations#0coversTableValueConstructorRuleTest::testIsInsertSourceExcludesSetOperations#1coversTableValueConstructorRuleTest::testIsInsertSourceExcludesSetOperations#2coversTableValueConstructorRuleTest::testIsInsertSourceExcludesSetOperations#3coversTableValueConstructorRuleTest::testIsInsertSourceExcludesSetOperations#4coversTableValueConstructorRuleTest::testIsInsertSourceExcludesSetOperations#5coversTableValueConstructorRuleTest::testIsInsertSourceExcludesSetOperations#6coversTableValueConstructorRuleTest::testIsInsertSourceExcludesSetOperations#7coversTableValueConstructorRuleTest::testIsInsertSourceExcludesSetOperations#8coversTableValueConstructorRuleTest::testRewriteCompletesBothRowsOfAnInsertSetOperationcovers and callsTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRowscallsTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#0coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#1coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#10coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#11coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#12coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#13coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#14coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#15coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#16coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#17coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#18coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#19coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#2coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#20coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#21coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#22coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#23coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#24coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#25coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#26coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#27coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#28coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#29coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#3coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#30coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#31coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#32coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#33coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#34coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#35coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#36coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#37coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#38coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#39coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#4coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#40coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#41coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#42coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#43coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#44coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#45coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#46coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#47coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#48coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#49coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#5coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#50coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#51coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#52coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#53coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#54coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#55coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#6coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#7coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#8coversTableValueConstructorRuleTest::testRewriteCompletesQueryRowsAndPreservesInsertRows#9coversTableValueConstructorRuleTest::testRewritePreservesAbsentRowsAndMissingValueProductionscovers and callsTableValueConstructorRuleTest::testRewriteRecordsEmptyProductionAndReplacementProvenancecovers and calls
Other tests reaching this symbol 6
GenerationContextTestcallsRewriteDefinitionsTestcallsMySqlProviderTestcallsPostgreSqlProviderTestcallsSqlGeneratorFactoryTestcallsSqliteProviderTestcalls