mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-02 10:40:57 +08:00
Use integer[] for consistency [skip ci]
This commit is contained in:
@@ -41,7 +41,7 @@ for (1 .. 50)
|
||||
is($expected, $actual);
|
||||
|
||||
# Test intvec
|
||||
$actual = $node->safe_psql("postgres", "SELECT intvec_cmp(v::int[]::intvec, '$query'::int[]::intvec) FROM tst");
|
||||
$actual = $node->safe_psql("postgres", "SELECT intvec_cmp(v::integer[]::intvec, '$query'::integer[]::intvec) FROM tst");
|
||||
is($expected, $actual);
|
||||
|
||||
# Test sparsevec
|
||||
|
||||
@@ -46,7 +46,7 @@ for my $function (@functions)
|
||||
is($expected, $actual, "halfvec $function");
|
||||
|
||||
# Test intvec
|
||||
$actual = $node->safe_psql("postgres", "SELECT $function(v::real[]::int[]::intvec, '$query'::vector::real[]::int[]::intvec) FROM tst");
|
||||
$actual = $node->safe_psql("postgres", "SELECT $function(v::real[]::integer[]::intvec, '$query'::vector::real[]::integer[]::intvec) FROM tst");
|
||||
is($expected, $actual, "intvec $function");
|
||||
|
||||
# Test sparsevec
|
||||
|
||||
Reference in New Issue
Block a user