Skip to content

Commit

Permalink
update some more test file expected output
Browse files Browse the repository at this point in the history
Signed-off-by: Tanzeel Khan <[email protected]>
  • Loading branch information
tanscorpio7 committed May 16, 2024
1 parent 0b41e94 commit b1dd3a6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/odbc-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
if: steps.install-extensions.outcome == 'success' && steps.install-unix-odbc-driver.outcome=='success'
run: |
cd ~
wget https://ftp.postgresql.org/pub/odbc/versions/src/psqlodbc-16.00.0000.tar.gz
wget https://ftp.postgresql.org/pub/odbc/versions.old/src/psqlodbc-16.00.0000.tar.gz
tar -zxvf psqlodbc-16.00.0000.tar.gz
cd psqlodbc-16.00.0000
./configure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1673,7 +1673,7 @@ INSERT INTO t_unsupported_cac1 VALUES (0, 0);
GO
~~ERROR (Code: 547)~~

~~ERROR (Message: new row for relation "t_unsupported_cac1" violates check constraint "chk1t_unsupported_cac1848ea8bb1121ee393ad72ae0d412d8d2")~~
~~ERROR (Message: new row for relation "t_unsupported_cac1" violates check constraint "chk1t_unsupported_cac1")~~

DROP TABLE t_unsupported_cac1
GO
Expand All @@ -1700,7 +1700,7 @@ ALTER TABLE t_unsupported_cec1 ADD constraint chk1 check (a > 0)
GO
~~ERROR (Code: 547)~~

~~ERROR (Message: check constraint "chk1t_unsupported_cec1848ea8bb1121ee393ad72ae0d412d8d2" of relation "t_unsupported_cec1" is violated by some row)~~
~~ERROR (Message: check constraint "chk1" of relation "t_unsupported_cec1" is violated by some row)~~

ALTER TABLE t_unsupported_cec1 CHECK constraint chk1
GO
Expand Down Expand Up @@ -1729,7 +1729,7 @@ ALTER TABLE t_unsupported_cec1 ADD constraint chk1 check (a > 0)
GO
~~ERROR (Code: 547)~~

~~ERROR (Message: check constraint "chk1t_unsupported_cec1848ea8bb1121ee393ad72ae0d412d8d2" of relation "t_unsupported_cec1" is violated by some row)~~
~~ERROR (Message: check constraint "chk1" of relation "t_unsupported_cec1" is violated by some row)~~

ALTER TABLE t_unsupported_cec1 CHECK constraint chk1
GO
Expand Down
4 changes: 2 additions & 2 deletions test/python/expected/pyodbc/ddl_func_proc.out
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CREATE TABLE [dbo].[routines_customers](
[city] [char](50) NULL,
[state] [char](25) NULL,
[zip_code] [char](10) NULL,
CONSTRAINT [customers_pkroutines_customers248e85dd01b015e3396e8567c240879b] PRIMARY KEY NONCLUSTERED
CONSTRAINT [customers_pk] PRIMARY KEY NONCLUSTERED
(
[customer_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
Expand Down Expand Up @@ -197,7 +197,7 @@ BEGIN
END;
GO

ALTER TABLE [dbo].[routines_customers] ADD CONSTRAINT [customers_pkroutines_customers248e85dd01b015e3396e8567c240879b] PRIMARY KEY NONCLUSTERED
ALTER TABLE [dbo].[routines_customers] ADD CONSTRAINT [customers_pk] PRIMARY KEY NONCLUSTERED
(
[customer_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
Expand Down
8 changes: 4 additions & 4 deletions test/python/expected/pyodbc/ddl_tables_index.out
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ CREATE TABLE [dbo].[babel_4817_t2](
[col6] [int] NULL,
[col7] [int] IDENTITY(1,1) NOT NULL,
[col8] [int] NOT NULL,
CONSTRAINT [babel_4817_t2_pkbabel_4817_t2405f712bf0a4067d413068dcbaf9fc11] PRIMARY KEY NONCLUSTERED
CONSTRAINT [babel_4817_t2_pk] PRIMARY KEY NONCLUSTERED
(
[col3] ASC,
[col7] ASC
Expand Down Expand Up @@ -185,8 +185,8 @@ CREATE TABLE [dbo].[test_null](
[b] [int] NULL
) ON [PRIMARY]

ALTER TABLE [dbo].[test_null] WITH CHECK ADD CONSTRAINT [constraint1test_null987b8e55c77de33d095778885ecd84f4] CHECK (((a > 10)))
ALTER TABLE [dbo].[test_null] CHECK CONSTRAINT [constraint1test_null987b8e55c77de33d095778885ecd84f4]
ALTER TABLE [dbo].[test_null] WITH CHECK ADD CONSTRAINT [constraint1] CHECK (((a > 10)))
ALTER TABLE [dbo].[test_null] CHECK CONSTRAINT [constraint1]
ALTER TABLE [dbo].[test_null] WITH CHECK ADD CONSTRAINT [test_null_a_check] CHECK (((a IS NOT NULL)))
ALTER TABLE [dbo].[test_null] CHECK CONSTRAINT [test_null_a_check]
GO
Expand Down Expand Up @@ -275,7 +275,7 @@ GO

SET ANSI_PADDING ON

ALTER TABLE [dbo].[babel_4817_t2] ADD CONSTRAINT [babel_4817_t2_pkbabel_4817_t2405f712bf0a4067d413068dcbaf9fc11] PRIMARY KEY NONCLUSTERED
ALTER TABLE [dbo].[babel_4817_t2] ADD CONSTRAINT [babel_4817_t2_pk] PRIMARY KEY NONCLUSTERED
(
[col3] ASC,
[col7] ASC
Expand Down

0 comments on commit b1dd3a6

Please sign in to comment.