moved setup folder to functional

This commit is contained in:
yitam 2017-06-23 16:08:54 -07:00
parent 42612dc804
commit c678f9a648
22 changed files with 275 additions and 275 deletions

View file

@ -27,16 +27,16 @@ install:
script: script:
- docker run -e TRAVIS_JOB_ID -t -d -w $PHPSQLDIR --link $TEST_PHP_SQL_SERVER --name=client msphpsql-dev - docker run -e TRAVIS_JOB_ID -t -d -w $PHPSQLDIR --link $TEST_PHP_SQL_SERVER --name=client msphpsql-dev
- docker ps -a - docker ps -a
- docker exec client python ./test/setup/setup_dbs.py -dbname $SQLSRV_DBNAME - docker exec client python ./test/functional/setup/setup_dbs.py -dbname $SQLSRV_DBNAME
- docker exec client python ./test/setup/setup_dbs.py -dbname $PDOSQLSRV_DBNAME - docker exec client python ./test/functional/setup/setup_dbs.py -dbname $PDOSQLSRV_DBNAME
- docker exec client php ./source/pdo_sqlsrv/run-tests.php ./test/functional/pdo_sqlsrv/*.phpt - docker exec client php ./source/pdo_sqlsrv/run-tests.php ./test/functional/pdo_sqlsrv/*.phpt
- docker exec client php ./source/sqlsrv/run-tests.php ./test/functional/sqlsrv/*.phpt - docker exec client php ./source/sqlsrv/run-tests.php ./test/functional/sqlsrv/*.phpt
- docker exec client bash -c 'for f in ./test/functional/sqlsrv/*.diff; do ls $f 2>/dev/null; cat $f 2>/dev/null; done || true' - docker exec client bash -c 'for f in ./test/functional/sqlsrv/*.diff; do ls $f 2>/dev/null; cat $f 2>/dev/null; done || true'
- docker exec client bash -c 'for f in ./test/functional/sqlsrv/*.out; do ls $f 2>/dev/null; cat $f 2>/dev/null; done || true' - docker exec client bash -c 'for f in ./test/functional/sqlsrv/*.out; do ls $f 2>/dev/null; cat $f 2>/dev/null; done || true'
- docker exec client bash -c 'for f in ./test/functional/pdo_sqlsrv/*.diff; do ls $f 2>/dev/null; cat $f 2>/dev/null; done || true' - docker exec client bash -c 'for f in ./test/functional/pdo_sqlsrv/*.diff; do ls $f 2>/dev/null; cat $f 2>/dev/null; done || true'
- docker exec client bash -c 'for f in ./test/functional/pdo_sqlsrv/*.out; do ls $f 2>/dev/null; cat $f 2>/dev/null; done || true' - docker exec client bash -c 'for f in ./test/functional/pdo_sqlsrv/*.out; do ls $f 2>/dev/null; cat $f 2>/dev/null; done || true'
- docker exec client python ./test/setup/cleanup_dbs.py -dbname $SQLSRV_DBNAME - docker exec client python ./test/functional/setup/cleanup_dbs.py -dbname $SQLSRV_DBNAME
- docker exec client python ./test/setup/cleanup_dbs.py -dbname $PDOSQLSRV_DBNAME - docker exec client python ./test/functional/setup/cleanup_dbs.py -dbname $PDOSQLSRV_DBNAME
- docker exec client coveralls -e ./source/shared/ --gcov-options '\-lp' - docker exec client coveralls -e ./source/shared/ --gcov-options '\-lp'
- docker stop client - docker stop client
- docker ps -a - docker ps -a

View file

@ -163,15 +163,15 @@ test_script:
- php -i - php -i
- python -V - python -V
- Echo setup test database for SQLSRV tests - %SQLSRV_DBNAME% - Echo setup test database for SQLSRV tests - %SQLSRV_DBNAME%
- python %APPVEYOR_BUILD_FOLDER%\test\setup\setup_dbs.py -dbname %SQLSRV_DBNAME% - python %APPVEYOR_BUILD_FOLDER%\test\functional\setup\setup_dbs.py -dbname %SQLSRV_DBNAME%
- Echo setup test database for PDO_SQLSRV tests - %PDOSQLSRV_DBNAME% - Echo setup test database for PDO_SQLSRV tests - %PDOSQLSRV_DBNAME%
- python %APPVEYOR_BUILD_FOLDER%\test\setup\setup_dbs.py -dbname %PDOSQLSRV_DBNAME% - python %APPVEYOR_BUILD_FOLDER%\test\functional\setup\setup_dbs.py -dbname %PDOSQLSRV_DBNAME%
- php run-tests.php -p php.exe %APPVEYOR_BUILD_FOLDER%\test\functional\sqlsrv\*.phpt > %APPVEYOR_BUILD_FOLDER%\test\functional\sqlsrv.log 2>&1 - php run-tests.php -p php.exe %APPVEYOR_BUILD_FOLDER%\test\functional\sqlsrv\*.phpt > %APPVEYOR_BUILD_FOLDER%\test\functional\sqlsrv.log 2>&1
- type %APPVEYOR_BUILD_FOLDER%\test\functional\sqlsrv.log - type %APPVEYOR_BUILD_FOLDER%\test\functional\sqlsrv.log
- php run-tests.php -p php.exe %APPVEYOR_BUILD_FOLDER%\test\functional\pdo_sqlsrv\*.phpt > %APPVEYOR_BUILD_FOLDER%\test\functional\pdo_sqlsrv.log 2>&1 - php run-tests.php -p php.exe %APPVEYOR_BUILD_FOLDER%\test\functional\pdo_sqlsrv\*.phpt > %APPVEYOR_BUILD_FOLDER%\test\functional\pdo_sqlsrv.log 2>&1
- type %APPVEYOR_BUILD_FOLDER%\test\functional\pdo_sqlsrv.log - type %APPVEYOR_BUILD_FOLDER%\test\functional\pdo_sqlsrv.log
- python %APPVEYOR_BUILD_FOLDER%\test\setup\cleanup_dbs.py -dbname %SQLSRV_DBNAME% - python %APPVEYOR_BUILD_FOLDER%\test\functional\setup\cleanup_dbs.py -dbname %SQLSRV_DBNAME%
- python %APPVEYOR_BUILD_FOLDER%\test\setup\cleanup_dbs.py -dbname %PDOSQLSRV_DBNAME% - python %APPVEYOR_BUILD_FOLDER%\test\functional\setup\cleanup_dbs.py -dbname %PDOSQLSRV_DBNAME%
after_test: after_test:
- cd %APPVEYOR_BUILD_FOLDER%\test\functional\ - cd %APPVEYOR_BUILD_FOLDER%\test\functional\

View file

@ -1,13 +1,13 @@
9.0 9.0
11 11
1 SQLINT 0 4 "" 1 SalesOrderID "" 1 SQLINT 0 4 "" 1 SalesOrderID ""
2 SQLINT 0 4 "" 2 SalesOrderDetailID "" 2 SQLINT 0 4 "" 2 SalesOrderDetailID ""
3 SQLNCHAR 2 50 "" 3 CarrierTrackingNumber Latin1_General_CS_AS 3 SQLNCHAR 2 50 "" 3 CarrierTrackingNumber Latin1_General_CS_AS
4 SQLSMALLINT 0 2 "" 4 OrderQty "" 4 SQLSMALLINT 0 2 "" 4 OrderQty ""
5 SQLINT 0 4 "" 5 ProductID "" 5 SQLINT 0 4 "" 5 ProductID ""
6 SQLINT 0 4 "" 6 SpecialOfferID "" 6 SQLINT 0 4 "" 6 SpecialOfferID ""
7 SQLMONEY 0 8 "" 7 UnitPrice "" 7 SQLMONEY 0 8 "" 7 UnitPrice ""
8 SQLMONEY 0 8 "" 8 UnitPriceDiscount "" 8 SQLMONEY 0 8 "" 8 UnitPriceDiscount ""
9 SQLNUMERIC 1 19 "" 9 LineTotal "" 9 SQLNUMERIC 1 19 "" 9 LineTotal ""
10 SQLUNIQUEID 1 16 "" 10 rowguid "" 10 SQLUNIQUEID 1 16 "" 10 rowguid ""
11 SQLDATETIME 0 8 "" 11 ModifiedDate "" 11 SQLDATETIME 0 8 "" 11 ModifiedDate ""

View file

@ -1,24 +1,24 @@
USE $(dbname) USE $(dbname)
GO GO
IF EXISTS (SELECT * FROM sys.objects IF EXISTS (SELECT * FROM sys.objects
WHERE object_id = OBJECT_ID(N'[dbo].[168256]') AND type in (N'U')) WHERE object_id = OBJECT_ID(N'[dbo].[168256]') AND type in (N'U'))
BEGIN BEGIN
DROP TABLE [168256] DROP TABLE [168256]
END END
GO GO
CREATE TABLE [168256] ( CREATE TABLE [168256] (
[SalesOrderID] [int] NOT NULL, [SalesOrderID] [int] NOT NULL,
[SalesOrderDetailID] [int] IDENTITY(1,1) NOT NULL, [SalesOrderDetailID] [int] IDENTITY(1,1) NOT NULL,
[CarrierTrackingNumber] [nvarchar](25) NULL, [CarrierTrackingNumber] [nvarchar](25) NULL,
[OrderQty] [smallint] NOT NULL, [OrderQty] [smallint] NOT NULL,
[ProductID] [int] NOT NULL, [ProductID] [int] NOT NULL,
[SpecialOfferID] [int] NOT NULL, [SpecialOfferID] [int] NOT NULL,
[UnitPrice] [money] NOT NULL, [UnitPrice] [money] NOT NULL,
[UnitPriceDiscount] [money] NOT NULL DEFAULT ((0.0)), [UnitPriceDiscount] [money] NOT NULL DEFAULT ((0.0)),
[LineTotal] AS (isnull(([UnitPrice]*((1.0)-[UnitPriceDiscount]))*[OrderQty],(0.0))), [LineTotal] AS (isnull(([UnitPrice]*((1.0)-[UnitPriceDiscount]))*[OrderQty],(0.0))),
[rowguid] [uniqueidentifier] ROWGUIDCOL NOT NULL DEFAULT (newid()), [rowguid] [uniqueidentifier] ROWGUIDCOL NOT NULL DEFAULT (newid()),
[ModifiedDate] [datetime] NOT NULL DEFAULT (getdate())); [ModifiedDate] [datetime] NOT NULL DEFAULT (getdate()));
GO GO

View file

@ -1,12 +1,12 @@
9.0 9.0
10 10
1 SQLCHAR 2 10 "" 1 asin SQL_Latin1_General_CP1_CI_AS 1 SQLCHAR 2 10 "" 1 asin SQL_Latin1_General_CP1_CI_AS
2 SQLCHAR 2 12 "" 2 upc SQL_Latin1_General_CP1_CI_AS 2 SQLCHAR 2 12 "" 2 upc SQL_Latin1_General_CP1_CI_AS
3 SQLCHAR 2 50 "" 3 title SQL_Latin1_General_CP1_CI_AS 3 SQLCHAR 2 50 "" 3 title SQL_Latin1_General_CP1_CI_AS
4 SQLCHAR 2 50 "" 4 artist SQL_Latin1_General_CP1_CI_AS 4 SQLCHAR 2 50 "" 4 artist SQL_Latin1_General_CP1_CI_AS
5 SQLCHAR 2 12 "" 5 rel_date SQL_Latin1_General_CP1_CI_AS 5 SQLCHAR 2 12 "" 5 rel_date SQL_Latin1_General_CP1_CI_AS
6 SQLCHAR 2 50 "" 6 label SQL_Latin1_General_CP1_CI_AS 6 SQLCHAR 2 50 "" 6 label SQL_Latin1_General_CP1_CI_AS
7 SQLCHAR 2 500 "" 7 image SQL_Latin1_General_CP1_CI_AS 7 SQLCHAR 2 500 "" 7 image SQL_Latin1_General_CP1_CI_AS
8 SQLCHAR 2 500 "" 8 med_image SQL_Latin1_General_CP1_CI_AS 8 SQLCHAR 2 500 "" 8 med_image SQL_Latin1_General_CP1_CI_AS
9 SQLCHAR 8 0 "" 9 review1 SQL_Latin1_General_CP1_CI_AS 9 SQLCHAR 8 0 "" 9 review1 SQL_Latin1_General_CP1_CI_AS
10 SQLCHAR 8 0 "" 10 review2 SQL_Latin1_General_CP1_CI_AS 10 SQLCHAR 8 0 "" 10 review2 SQL_Latin1_General_CP1_CI_AS

View file

@ -1,47 +1,47 @@
USE $(dbname) USE $(dbname)
GO GO
IF EXISTS (SELECT * FROM sys.objects IF EXISTS (SELECT * FROM sys.objects
WHERE object_id = OBJECT_ID(N'[dbo].[tracks]') AND type in (N'U')) WHERE object_id = OBJECT_ID(N'[dbo].[tracks]') AND type in (N'U'))
BEGIN BEGIN
ALTER TABLE $(dbname)..[tracks] DROP CONSTRAINT [FK__tracks__asin__7F60ED59] ALTER TABLE $(dbname)..[tracks] DROP CONSTRAINT [FK__tracks__asin__7F60ED59]
END END
GO GO
IF EXISTS (SELECT * FROM sys.objects IF EXISTS (SELECT * FROM sys.objects
WHERE object_id = OBJECT_ID(N'[dbo].[cd_info]') AND type in (N'U')) WHERE object_id = OBJECT_ID(N'[dbo].[cd_info]') AND type in (N'U'))
BEGIN BEGIN
DROP TABLE [cd_info] DROP TABLE [cd_info]
END END
GO GO
/****** Object: Table [dbo].[cd_info] Script Date: 09/26/2007 11:26:52 ******/ /****** Object: Table [dbo].[cd_info] Script Date: 09/26/2007 11:26:52 ******/
SET ANSI_NULLS ON SET ANSI_NULLS ON
GO GO
SET QUOTED_IDENTIFIER ON SET QUOTED_IDENTIFIER ON
GO GO
SET ANSI_PADDING ON SET ANSI_PADDING ON
GO GO
CREATE TABLE [dbo].[cd_info]( CREATE TABLE [dbo].[cd_info](
[asin] [char](10) NOT NULL, [asin] [char](10) NOT NULL,
[upc] [char](12) NULL, [upc] [char](12) NULL,
[title] [varchar](50) NULL, [title] [varchar](50) NULL,
[artist] [varchar](50) NULL, [artist] [varchar](50) NULL,
[rel_date] [varchar](12) NOT NULL CONSTRAINT [DF_cd_info_rel_date] DEFAULT ((0)), [rel_date] [varchar](12) NOT NULL CONSTRAINT [DF_cd_info_rel_date] DEFAULT ((0)),
[label] [varchar](50) NULL, [label] [varchar](50) NULL,
[image] [varchar](500) NULL, [image] [varchar](500) NULL,
[med_image] [varchar](500) NULL, [med_image] [varchar](500) NULL,
[review1] [varchar](max) NULL, [review1] [varchar](max) NULL,
[review2] [varchar](max) NULL, [review2] [varchar](max) NULL,
CONSTRAINT [PK_cd_info] PRIMARY KEY CLUSTERED CONSTRAINT [PK_cd_info] PRIMARY KEY CLUSTERED
( (
[asin] ASC [asin] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
) )
GO GO
SET ANSI_PADDING OFF SET ANSI_PADDING OFF

View file

@ -1,13 +1,13 @@
USE [master] USE [master]
GO GO
IF EXISTS (SELECT name FROM sys.databases WHERE name = '$(dbname)' ) IF EXISTS (SELECT name FROM sys.databases WHERE name = '$(dbname)' )
BEGIN BEGIN
DROP DATABASE $(dbname) DROP DATABASE $(dbname)
END END
CREATE DATABASE $(dbname) CREATE DATABASE $(dbname)
GO GO

View file

@ -1,8 +1,8 @@
USE [master] USE [master]
GO GO
IF EXISTS (SELECT name FROM sys.databases WHERE name = '$(dbname)' ) IF EXISTS (SELECT name FROM sys.databases WHERE name = '$(dbname)' )
BEGIN BEGIN
DROP DATABASE $(dbname) DROP DATABASE $(dbname)
END END

View file

@ -1,31 +1,31 @@
--first, create new logins (user id / password pair) if not yet created --first, create new logins (user id / password pair) if not yet created
USE master; USE master;
GO GO
IF NOT EXISTS (SELECT name FROM master..syslogins WHERE name = 'test_password') IF NOT EXISTS (SELECT name FROM master..syslogins WHERE name = 'test_password')
BEGIN BEGIN
CREATE LOGIN test_password WITH PASSWORD='! ;4triou'; CREATE LOGIN test_password WITH PASSWORD='! ;4triou';
END END
GO GO
IF NOT EXISTS (SELECT name FROM master..syslogins WHERE name = 'test_password2') IF NOT EXISTS (SELECT name FROM master..syslogins WHERE name = 'test_password2')
BEGIN BEGIN
CREATE LOGIN test_password2 WITH PASSWORD='!} ;4triou'; CREATE LOGIN test_password2 WITH PASSWORD='!} ;4triou';
END END
GO GO
IF NOT EXISTS (SELECT name FROM master..syslogins WHERE name = 'test_password3') IF NOT EXISTS (SELECT name FROM master..syslogins WHERE name = 'test_password3')
BEGIN BEGIN
CREATE LOGIN test_password3 WITH PASSWORD='! ;4triou}'; CREATE LOGIN test_password3 WITH PASSWORD='! ;4triou}';
END END
GO GO
--the following users will be granted access to the test database --the following users will be granted access to the test database
USE $(dbname); USE $(dbname);
GO GO
CREATE USER test_password FROM LOGIN test_password; CREATE USER test_password FROM LOGIN test_password;
CREATE USER test_password2 FROM LOGIN test_password2; CREATE USER test_password2 FROM LOGIN test_password2;
CREATE USER test_password3 FROM LOGIN test_password3; CREATE USER test_password3 FROM LOGIN test_password3;
GO GO

View file

@ -1,15 +1,15 @@
9.0 9.0
13 13
1 SQLCHAR 8 0 "" 1 varchar_type SQL_Latin1_General_CP1_CI_AS 1 SQLCHAR 8 0 "" 1 varchar_type SQL_Latin1_General_CP1_CI_AS
2 SQLNCHAR 8 0 "" 2 nvarchar_type SQL_Latin1_General_CP1_CI_AS 2 SQLNCHAR 8 0 "" 2 nvarchar_type SQL_Latin1_General_CP1_CI_AS
3 SQLBINARY 8 0 "" 3 varbinary_type "" 3 SQLBINARY 8 0 "" 3 varbinary_type ""
4 SQLCHAR 4 0 "" 4 text_type SQL_Latin1_General_CP1_CI_AS 4 SQLCHAR 4 0 "" 4 text_type SQL_Latin1_General_CP1_CI_AS
5 SQLNCHAR 4 0 "" 5 ntext_type SQL_Latin1_General_CP1_CI_AS 5 SQLNCHAR 4 0 "" 5 ntext_type SQL_Latin1_General_CP1_CI_AS
6 SQLIMAGE 4 0 "" 6 image_type "" 6 SQLIMAGE 4 0 "" 6 image_type ""
7 SQLNCHAR 8 0 "" 7 xml_type "" 7 SQLNCHAR 8 0 "" 7 xml_type ""
8 SQLCHAR 2 256 "" 8 char_short_type SQL_Latin1_General_CP1_CI_AS 8 SQLCHAR 2 256 "" 8 char_short_type SQL_Latin1_General_CP1_CI_AS
9 SQLCHAR 2 256 "" 9 varchar_short_type SQL_Latin1_General_CP1_CI_AS 9 SQLCHAR 2 256 "" 9 varchar_short_type SQL_Latin1_General_CP1_CI_AS
10 SQLNCHAR 2 512 "" 10 nchar_short_type SQL_Latin1_General_CP1_CI_AS 10 SQLNCHAR 2 512 "" 10 nchar_short_type SQL_Latin1_General_CP1_CI_AS
11 SQLNCHAR 2 512 "" 11 nvarchar_short_type SQL_Latin1_General_CP1_CI_AS 11 SQLNCHAR 2 512 "" 11 nvarchar_short_type SQL_Latin1_General_CP1_CI_AS
12 SQLBINARY 2 256 "" 12 binary_short_type "" 12 SQLBINARY 2 256 "" 12 binary_short_type ""
13 SQLBINARY 2 256 "" 13 varbinary_short_type "" 13 SQLBINARY 2 256 "" 13 varbinary_short_type ""

View file

@ -1,67 +1,67 @@
USE $(dbname) USE $(dbname)
GO GO
CREATE TABLE [test_types] ([bigint_type] BIGINT null, CREATE TABLE [test_types] ([bigint_type] BIGINT null,
[int_type] INT null, [int_type] INT null,
[smallint_type] SMALLINT null, [smallint_type] SMALLINT null,
[tinyint_type] TINYINT null, [tinyint_type] TINYINT null,
[bit_type] BIT null, [bit_type] BIT null,
[decimal_type] DECIMAL(38,0) null, [decimal_type] DECIMAL(38,0) null,
[money_type] MONEY null, [money_type] MONEY null,
[smallmoney_type] SMALLMONEY null, [smallmoney_type] SMALLMONEY null,
[float_type] FLOAT(53) null, [float_type] FLOAT(53) null,
[real_type] REAL null, [real_type] REAL null,
[datetime_type] DATETIME null, [datetime_type] DATETIME null,
[smalldatetime_type] SMALLDATETIME null ); [smalldatetime_type] SMALLDATETIME null );
GO GO
-- maximum test -- maximum test
INSERT INTO $(dbname)..[test_types] (bigint_type, int_type, smallint_type, tinyint_type, bit_type, decimal_type, datetime_type, money_type, smallmoney_type, float_type, real_type) INSERT INTO $(dbname)..[test_types] (bigint_type, int_type, smallint_type, tinyint_type, bit_type, decimal_type, datetime_type, money_type, smallmoney_type, float_type, real_type)
VALUES (9223372036854775807, 2147483647, 32767, 255, 1, 9999999999999999999999999999999999999, '12/12/1968 16:20', 922337203685477.5807, 214748.3647, 1.79E+308, 1.18E-38 ) VALUES (9223372036854775807, 2147483647, 32767, 255, 1, 9999999999999999999999999999999999999, '12/12/1968 16:20', 922337203685477.5807, 214748.3647, 1.79E+308, 1.18E-38 )
-- minimum test -- minimum test
INSERT INTO $(dbname)..[test_types] (bigint_type, int_type, smallint_type, tinyint_type, bit_type, decimal_type, datetime_type, money_type, smallmoney_type, float_type, real_type) INSERT INTO $(dbname)..[test_types] (bigint_type, int_type, smallint_type, tinyint_type, bit_type, decimal_type, datetime_type, money_type, smallmoney_type, float_type, real_type)
VALUES (-9223372036854775808, -2147483648, -32768, 0, 0, -10000000000000000000000000000000000001,'12/12/1968 16:20', -922337203685477.5808, -214748.3648, -1.79E+308, -1.18E-38 ) VALUES (-9223372036854775808, -2147483648, -32768, 0, 0, -10000000000000000000000000000000000001,'12/12/1968 16:20', -922337203685477.5808, -214748.3648, -1.79E+308, -1.18E-38 )
-- zero test -- zero test
INSERT INTO $(dbname)..[test_types] (bigint_type, int_type, smallint_type, tinyint_type, bit_type, decimal_type, datetime_type, money_type, smallmoney_type, float_type, real_type) INSERT INTO $(dbname)..[test_types] (bigint_type, int_type, smallint_type, tinyint_type, bit_type, decimal_type, datetime_type, money_type, smallmoney_type, float_type, real_type)
VALUES (0, 0, 0, 0, 0, 0, '12/12/1968 16:20', 0, 0, 0, 0) VALUES (0, 0, 0, 0, 0, 0, '12/12/1968 16:20', 0, 0, 0, 0)
GO GO
CREATE TABLE [test_streamable_types] ( CREATE TABLE [test_streamable_types] (
[varchar_type] VARCHAR(MAX) null, [varchar_type] VARCHAR(MAX) null,
[nvarchar_type] NVARCHAR(MAX) null, [nvarchar_type] NVARCHAR(MAX) null,
[varbinary_type] VARBINARY(MAX) null, [varbinary_type] VARBINARY(MAX) null,
[text_type] TEXT null, [text_type] TEXT null,
[ntext_type] NTEXT null, [ntext_type] NTEXT null,
[image_type] IMAGE null, [image_type] IMAGE null,
[xml_type] XML null, [xml_type] XML null,
[char_short_type] CHAR(256) null, [char_short_type] CHAR(256) null,
[varchar_short_type] VARCHAR(256) null, [varchar_short_type] VARCHAR(256) null,
[nchar_short_type] NCHAR(256) null, [nchar_short_type] NCHAR(256) null,
[nvarchar_short_type] NVARCHAR(256) null, [nvarchar_short_type] NVARCHAR(256) null,
[binary_short_type] BINARY(256) null, [binary_short_type] BINARY(256) null,
[varbinary_short_type] VARBINARY(256) null ); [varbinary_short_type] VARBINARY(256) null );
GO GO
CREATE TABLE [155671] ([cat_id] [int] IDENTITY (1,1) NOT NULL, [cat_title] [varchar](50) NOT NULL, [cat_order][int] NOT NULL) ON [PRIMARY]; CREATE TABLE [155671] ([cat_id] [int] IDENTITY (1,1) NOT NULL, [cat_title] [varchar](50) NOT NULL, [cat_order][int] NOT NULL) ON [PRIMARY];
GO GO
CREATE TABLE [159137] ([xml_type][xml] null) ON [PRIMARY]; CREATE TABLE [159137] ([xml_type][xml] null) ON [PRIMARY];
GO GO
IF EXISTS ( SELECT * IF EXISTS ( SELECT *
FROM sys.objects FROM sys.objects
WHERE object_id = OBJECT_ID(N'test_out') WHERE object_id = OBJECT_ID(N'test_out')
AND type IN ( N'P', N'PC' ) ) AND type IN ( N'P', N'PC' ) )
BEGIN BEGIN
DROP proc test_out DROP proc test_out
END END
GO GO
create proc test_out @p1 integer, @p2 integer, @p3 integer output create proc test_out @p1 integer, @p2 integer, @p3 integer output
as as
begin begin
select @p3 = @p1 + @p2 select @p3 = @p1 + @p2
print @p3 print @p3
end end
go go

View file

@ -1,4 +1,4 @@
9.0 9.0
2 2
1 SQLCHAR 2 100 "" 1 track SQL_Latin1_General_CP1_CI_AS 1 SQLCHAR 2 100 "" 1 track SQL_Latin1_General_CP1_CI_AS
2 SQLCHAR 2 10 "" 2 asin SQL_Latin1_General_CP1_CI_AS 2 SQLCHAR 2 10 "" 2 asin SQL_Latin1_General_CP1_CI_AS

View file

@ -1,32 +1,32 @@
USE $(dbname) USE $(dbname)
GO GO
IF EXISTS (SELECT * FROM sys.objects IF EXISTS (SELECT * FROM sys.objects
WHERE object_id = OBJECT_ID(N'[dbo].[tracks]') AND type in (N'U')) WHERE object_id = OBJECT_ID(N'[dbo].[tracks]') AND type in (N'U'))
BEGIN BEGIN
DROP TABLE [tracks] DROP TABLE [tracks]
END END
GO GO
/****** Object: Table [dbo].[tracks] Script Date: 09/26/2007 11:33:41 ******/ /****** Object: Table [dbo].[tracks] Script Date: 09/26/2007 11:33:41 ******/
SET ANSI_NULLS ON SET ANSI_NULLS ON
GO GO
SET QUOTED_IDENTIFIER ON SET QUOTED_IDENTIFIER ON
GO GO
SET ANSI_PADDING ON SET ANSI_PADDING ON
GO GO
CREATE TABLE [dbo].[tracks]( CREATE TABLE [dbo].[tracks](
[track] [varchar](100) NULL, [track] [varchar](100) NULL,
[asin] [char](10) NOT NULL [asin] [char](10) NOT NULL
) ON [PRIMARY] ) ON [PRIMARY]
GO GO
SET ANSI_PADDING OFF SET ANSI_PADDING OFF
GO GO
ALTER TABLE [dbo].[tracks] WITH NOCHECK ADD CONSTRAINT [FK__tracks__asin__7F60ED59] FOREIGN KEY([asin]) ALTER TABLE [dbo].[tracks] WITH NOCHECK ADD CONSTRAINT [FK__tracks__asin__7F60ED59] FOREIGN KEY([asin])
REFERENCES [dbo].[cd_info] ([asin]) REFERENCES [dbo].[cd_info] ([asin])
GO GO
ALTER TABLE [dbo].[tracks] CHECK CONSTRAINT [FK__tracks__asin__7F60ED59] ALTER TABLE [dbo].[tracks] CHECK CONSTRAINT [FK__tracks__asin__7F60ED59]

View file

@ -1,3 +1,3 @@
9.0 9.0
1 1
1 SQLBINARY 8 0 "" 1 xml_type "" 1 SQLBINARY 8 0 "" 1 xml_type ""