MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / setRule

Method setRule

src/jrd/Coercion.cpp:57–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void CoercionArray::setRule(const TypeClause* from, const TypeClause *to)
58{
59 CoercionRule newRule;
60 newRule.setRule(from, to);
61
62 for (unsigned n = 0; n < getCount(); ++n)
63 {
64 if (getElement(n) == newRule)
65 {
66 remove(n);
67 break;
68 }
69 }
70
71 add(newRule);
72}
73
74void CoercionRule::raiseError()
75{

Callers 1

executeMethod · 0.80

Calls 10

removeFunction · 0.85
FB_ALIGNFunction · 0.85
isDateTimeTzMethod · 0.80
isTextMethod · 0.80
isBlobMethod · 0.80
CVT_moveFunction · 0.70
addFunction · 0.50
raiseErrorFunction · 0.50
getBufferMethod · 0.45
getCountMethod · 0.45

Tested by

no test coverage detected