Skip to content
Browse files

Fix Sybase schema due to obscure syntax errors

An UTF8 character in a comment make Sybase choke with:

TinyTds::Error: Incorrect syntax near '@@@V0_INT91@@@V1_INT91'

Didn't investigate much, as the characters were located in comments
used only to keep the schema files up to date.
  • Loading branch information...
1 parent ac56654 commit 53a01314561c9ddd465f72b0075527b739aacc0a @vjt committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/schema/sybase_ase.sql
View
6 test/schema/sybase_ase.sql
@@ -56,7 +56,7 @@ CREATE TABLE [datatypes] (
-- [xml] [xml] NULL
)
-SET IDENTITY_INSERT [dbo].[datatypes] ON
+SET IDENTITY_INSERT [datatypes] ON
INSERT INTO [datatypes] ([id], [bigint]) VALUES ( 11, -9223372036854775807 )
INSERT INTO [datatypes] ([id], [bigint]) VALUES ( 12, 9223372036854775806 )
@@ -100,7 +100,7 @@ INSERT INTO [datatypes] ([id], [nchar_10]) VALUES ( 171, N'1234567890'
INSERT INTO [datatypes] ([id], [nchar_10]) VALUES ( 172, N'123456åå' )
INSERT INTO [datatypes] ([id], [nchar_10]) VALUES ( 173, N'abc123' )
-- INSERT INTO [datatypes] ([id], [ntext]) VALUES ( 181, N'test ntext' )
--- INSERT INTO [datatypes] ([id], [ntext]) VALUES ( 182, N'test ntext åå' )
+-- INSERT INTO [datatypes] ([id], [ntext]) VALUES ( 182, N'test ntext' ) -- utf-8 chars in comments make sybase choke
INSERT INTO [datatypes] ([id], [numeric_18_0]) VALUES ( 191, 191 )
INSERT INTO [datatypes] ([id], [numeric_18_0]) VALUES ( 192, 123456789012345678 )
INSERT INTO [datatypes] ([id], [numeric_36_2]) VALUES ( 193, 12345678901234567890.01 )
@@ -108,7 +108,7 @@ INSERT INTO [datatypes] ([id], [numeric_36_2]) VALUES ( 194, 123.46 )
INSERT INTO [datatypes] ([id], [nvarchar_50]) VALUES ( 201, N'test nvarchar_50' )
INSERT INTO [datatypes] ([id], [nvarchar_50]) VALUES ( 202, N'test nvarchar_50 åå' )
-- INSERT INTO [datatypes] ([id], [nvarchar_max]) VALUES ( 211, N'test nvarchar_max' )
--- INSERT INTO [datatypes] ([id], [nvarchar_max]) VALUES ( 212, N'test nvarchar_max åå' )
+-- INSERT INTO [datatypes] ([id], [nvarchar_max]) VALUES ( 212, N'test nvarchar_max' ) -- see 182
INSERT INTO [datatypes] ([id], [real]) VALUES ( 221, 123.45 )
INSERT INTO [datatypes] ([id], [real]) VALUES ( 222, 0.0 )
INSERT INTO [datatypes] ([id], [real]) VALUES ( 223, 0.00001 )

0 comments on commit 53a0131

Please sign in to comment.
Something went wrong with that request. Please try again.