Skip to content

Commit f7b4620

Browse files
committed
Fixed warning with SQLAlchemy 1.4.28+
1 parent c97563e commit f7b4620

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.1.5 (unreleased)
2+
3+
- Fixed warning with SQLAlchemy 1.4.28+
4+
15
## 0.1.4 (2021-10-12)
26

37
- Updated psycopg3 integration for 3.0 release (no longer experimental)

pgvector/sqlalchemy/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66

77
class Vector(UserDefinedType):
8+
cache_ok = True
9+
810
def __init__(self, dim=None):
911
super(UserDefinedType, self).__init__()
1012
self.dim = dim

0 commit comments

Comments
 (0)