-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #881 from Mause/comments
feat: comment support
- Loading branch information
Showing
3 changed files
with
48 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import duckdb | ||
|
||
|
||
def has_comment_support() -> bool: | ||
""" | ||
See https://github.com/duckdb/duckdb/pull/10372 | ||
""" | ||
try: | ||
with duckdb.connect(":memory:") as con: | ||
con.execute("CREATE TABLE t (i INTEGER);") | ||
con.execute("COMMENT ON TABLE t IS 'test';") | ||
except duckdb.ParserException: | ||
return False | ||
return True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters