Skip to content

Commit 69f68d4

Browse files
docs: use single quotes for strings in SQL restrictions
PostgreSQL interprets double quotes as identifier references, not string literals. Changed all examples to use the portable pattern: Table & "field = 'value'" instead of the MySQL-only pattern: Table & 'field = "value"' Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5010b85 commit 69f68d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/datajoint/schemas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ def virtual_schema(
899899
--------
900900
>>> lab = dj.virtual_schema('my_lab')
901901
>>> lab.Subject.fetch()
902-
>>> lab.Session & 'subject_id="M001"'
902+
>>> lab.Session & "subject_id='M001'"
903903
904904
See Also
905905
--------

0 commit comments

Comments
 (0)