MCPcopy
hub / github.com/ponyorm/pony / postJoinedStr

Method postJoinedStr

pony/orm/sqltranslation.py:1175–1185  ·  view source on GitHub ↗
(translator, node)

Source from the content-addressed store, hash-verified

1173 result.aggregated = test_monad.aggregated or then_monad.aggregated or else_monad.aggregated
1174 return result
1175 def postJoinedStr(translator, node):
1176 nullable = False
1177 sql = ['CONCAT']
1178 for item in node.values:
1179 monad = item.monad
1180 if not isinstance(monad, StringMixin):
1181 monad = monad.to_str()
1182 if monad.nullable:
1183 nullable = True
1184 sql.append(monad.getsql()[0])
1185 return StringExprMonad(str, sql, nullable=nullable)
1186 def postFormattedValue(translator, node):
1187 if node.format_spec is not None:
1188 throw(NotImplementedError, 'You cannot set width and precision for f-string expression in query')

Callers

nothing calls this directly

Calls 4

StringExprMonadClass · 0.85
appendMethod · 0.80
to_strMethod · 0.45
getsqlMethod · 0.45

Tested by

no test coverage detected