Skip to content

Commit

Permalink
fix: Use substring instead of substr alias
Browse files Browse the repository at this point in the history
Change-Id: I871df3e71548bd7136882646849d88eec847f903
Reviewed-on: https://review.monogon.dev/c/NetMeta/+/1349
Reviewed-by: Leopold Schabel <[email protected]>
  • Loading branch information
fionera committed Mar 16, 2023
1 parent 88d1834 commit 2bab7d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/single-node/schema/functions.cue
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function: ParseGoFlowAddress: {
-- endsWith IPv6v4NullPadding
endsWith(reinterpret(Address, 'FixedString(16)'), repeat(unhex('00'), 12)),
-- prepend ::ffff:
CAST(toFixedString(repeat(unhex('00'), 10) || repeat(unhex('FF'), 2) || substr(reinterpret(Address, 'FixedString(16)'), 1, 4), 16) AS IPv6),
CAST(toFixedString(repeat(unhex('00'), 10) || repeat(unhex('FF'), 2) || substring(reinterpret(Address, 'FixedString(16)'), 1, 4), 16) AS IPv6),
CAST(Address AS IPv6)
)
"""#
Expand Down

0 comments on commit 2bab7d9

Please sign in to comment.