forked from psycopg/psycopg
-
Notifications
You must be signed in to change notification settings - Fork 2
Add PyPI upload step to release workflow and enhance database compatibility handling #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
5ccb44b
Update README and project URLs for gaussdb-python
pangpang20 e4b68c4
Add PyPI upload step to release workflow
pangpang20 1996c1a
Update bump_version.py to support isort-gaussdb and remove gaussdb_c
pangpang20 a829280
chore: bump gaussdb package version to 1.0.0.dev3
pangpang20 77d7bda
chore: bump gaussdb_pool package version to 1.0.0.dev2
pangpang20 fbd3e1a
Update changelog and version bump script for isort-gaussdb
pangpang20 ce3857c
chore: bump isort_gaussdb package version to 0.0.2.dev3
pangpang20 251afa1
Relax tag pattern for release workflow
pangpang20 bad5b71
Update isort-gaussdb changelog formatting
pangpang20 a3d2165
Add isort-gaussdb changelog to documentation index
pangpang20 72d710e
chore: bump gaussdb package version to 1.0.0.dev4
pangpang20 1bc917a
chore: bump gaussdb_pool package version to 1.0.0.dev3
pangpang20 1a6cd42
chore: bump isort_gaussdb package version to 0.0.2.dev4
pangpang20 18f7fdd
Remove GPG signing from version bump script
pangpang20 f02d75b
chore: bump gaussdb package version to 1.0.0.dev5
pangpang20 801e969
chore: bump gaussdb package version to 1.0.0.dev6
pangpang20 95e234a
chore: bump gaussdb_pool package version to 1.0.0.dev4
pangpang20 770a481
chore: bump isort_gaussdb package version to 0.0.2.dev5
pangpang20 3c4510e
chore: bump gaussdb package version to 1.0.0
pangpang20 379b291
chore: bump gaussdb_pool package version to 1.0.0
pangpang20 be696c6
chore: bump isort_gaussdb package version to 0.0.2
pangpang20 fc2743e
chore: bump gaussdb package version to 1.0.1
pangpang20 9827aff
chore: bump gaussdb_pool package version to 1.0.1
pangpang20 989f1a0
chore: bump isort_gaussdb package version to 0.0.3
pangpang20 61bca1f
Update release workflow and version bump script for flexible tagging
pangpang20 a79641a
Add table cleanup before tests in test_array.py
pangpang20 957d615
Removed DBCOMPATIBILITY 'PG' parameter from CREATE DATABASE command i…
pangpang20 fe0bb11
Enhance database compatibility handling
pangpang20 378b1ea
Enhance database compatibility handling
pangpang20 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -42,6 +42,7 @@ Release notes | |
|
||
news | ||
news_pool | ||
news_isort | ||
|
||
|
||
Indices and tables | ||
|
This file contains hidden or 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 hidden or 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,12 @@ | ||
.. currentmodule:: isort_gaussdb | ||
|
||
.. index:: | ||
single: Release notes | ||
single: News | ||
|
||
``isort_gaussdb`` release notes | ||
=================================== | ||
|
||
Current release | ||
--------------- | ||
- First release on PyPI. |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这是在
O
模式测试不通过的用例吗? 打印的异常信息是不是明确下在PG
模式可以通过, 在O
模式无法通过?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是的,在O模式下是报错的,PG模式是可以通过的,在数据库中也验证过,如下:test02是O模式,test01是PG模式:
两个数据库在空值,datetime等类型有不通的处理:
test=> \c test02
Password for user root:
SSL connection (cipher: ECDHE-RSA-AES128-GCM-SHA256, bits: 128)
You are now connected to database "test02" as user "root".
test02=> create table testmany (a bigint, b bigint);
CREATE TABLE
test02=> insert into testmany values (1, '');
INSERT 0 1
test02=> \c test01
Password for user root:
SSL connection (cipher: ECDHE-RSA-AES128-GCM-SHA256, bits: 128)
You are now connected to database "test01" as user "root".
test01=> create table testmany (a bigint, b bigint);
CREATE TABLE
test01=> insert into testmany values (1, '');
ERROR: The input syntax of type bigint: "" is invalid.
LINE 1: insert into testmany values (1, '');
^
CONTEXT: referenced column: b
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是的,在O模式下是报错的,PG模式是可以通过的,在数据库中也验证过,如下:test02是O模式,test01是PG模式:
两个数据库在空值,datetime等类型有不同的处理:
test=> \c test02
Password for user root:
SSL connection (cipher: ECDHE-RSA-AES128-GCM-SHA256, bits: 128)
You are now connected to database "test02" as user "root".
test02=> create table testmany (a bigint, b bigint);
CREATE TABLE
test02=> insert into testmany values (1, '');
INSERT 0 1
test02=> \c test01
Password for user root:
SSL connection (cipher: ECDHE-RSA-AES128-GCM-SHA256, bits: 128)
You are now connected to database "test01" as user "root".
test01=> create table testmany (a bigint, b bigint);
CREATE TABLE
test01=> insert into testmany values (1, '');
ERROR: The input syntax of type bigint: "" is invalid.
LINE 1: insert into testmany values (1, '');
^
CONTEXT: referenced column: b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK