Skip to content

Commit 8d8e55c

Browse files
committed
Update varbinary.md
changing to the correct example for bytearray_position()
1 parent dda8286 commit 8d8e55c

File tree

1 file changed

+2
-5
lines changed
  • docs/query/DuneSQL-reference/Functions-and-operators

1 file changed

+2
-5
lines changed

docs/query/DuneSQL-reference/Functions-and-operators/varbinary.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,8 @@ Returns the index of the first occurrence of a given bytearray or string (or 0 i
271271

272272

273273
```sql
274-
-- search for 0x6cc2 and replaced with 0xabcd
275-
-- 0xc02aaa39b223fe8d0a0e5c4f27ead9083c75abcd as output
276-
SELECT bytearray_replace('0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
277-
'0x6cc2',
278-
'0xabcd')
274+
-- search for '0x6cc2' and return its position
275+
SELECT bytearray_position('0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2','0x6cc2')
279276
```
280277

281278
#### bytearray_replace()

0 commit comments

Comments
 (0)