Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ require (
github.com/riza-io/grpc-go v0.2.0
github.com/spf13/cobra v1.10.2
github.com/spf13/pflag v1.0.10
github.com/sqlc-dev/darkwing v0.1.0
github.com/sqlc-dev/darkwing v0.3.0
github.com/sqlc-dev/doubleclick v1.0.0
github.com/sqlc-dev/marino v0.3.1
github.com/sqlc-dev/meyer v0.1.2
github.com/sqlc-dev/oliphant v0.2.0
github.com/sqlc-dev/teesql v1.1.0
github.com/sqlc-dev/marino v0.4.0
github.com/sqlc-dev/meyer v0.1.3
github.com/sqlc-dev/oliphant v0.2.1
github.com/sqlc-dev/teesql v1.2.0
github.com/sqlc-dev/zetajones v0.2.0
github.com/tetratelabs/wazero v1.12.0
github.com/xeipuuv/gojsonschema v1.2.0
Expand Down
20 changes: 10 additions & 10 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,18 @@ github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiT
github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk=
github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/sqlc-dev/darkwing v0.1.0 h1:P5dtJebmCiy10e6DcnBQ2d7Mwuz636obuSAzTlr/1Qo=
github.com/sqlc-dev/darkwing v0.1.0/go.mod h1:kPb+99a6U+oVWtLhsuvkuDb/YRm8deK6x+W/9mX6uug=
github.com/sqlc-dev/darkwing v0.3.0 h1:ChIa+UFaU0lkp3sIKX1EOZbkrft28FvDNf4x5lzJTDI=
github.com/sqlc-dev/darkwing v0.3.0/go.mod h1:kPb+99a6U+oVWtLhsuvkuDb/YRm8deK6x+W/9mX6uug=
github.com/sqlc-dev/doubleclick v1.0.0 h1:2/OApfQ2eLgcfa/Fqs8WSMA6atH0G8j9hHbQIgMfAXI=
github.com/sqlc-dev/doubleclick v1.0.0/go.mod h1:ODHRroSrk/rr5neRHlWMSRijqOak8YmNaO3VAZCNl5Y=
github.com/sqlc-dev/marino v0.3.1 h1:5LkfxftC+drpX1NE6ULTSJlRQ3FzvaFgmXSik+s0Q1Y=
github.com/sqlc-dev/marino v0.3.1/go.mod h1:mQxC2dgDE0DWHMb2B5jZNk7KToJuS6wnxnffBfYnq08=
github.com/sqlc-dev/meyer v0.1.2 h1:40Ng9Glnx7CTf3yOYV7jfvDIN7voIFjrStkIULS+uws=
github.com/sqlc-dev/meyer v0.1.2/go.mod h1:pS4USCRf/SLjWtaMcnTo4YrEEFKBj8CyyqlxcVUJQH8=
github.com/sqlc-dev/oliphant v0.2.0 h1:jJ/s2fh4Plj3U1HsdqiY/clw/IHb4FCNaHfqirwxcsI=
github.com/sqlc-dev/oliphant v0.2.0/go.mod h1:fRM/t4FutRddTIq2YCuS4O9o+2rRwSwELRvLMqtPloo=
github.com/sqlc-dev/teesql v1.1.0 h1:3sVYQ9FGxQVcqrqQOQ27bk0aF4c4yN1H1zLL79uaSxQ=
github.com/sqlc-dev/teesql v1.1.0/go.mod h1:WwOp9UtnxG17+eNFT5KXu/AGBQ8ucdGc8wIOpnj4XCI=
github.com/sqlc-dev/marino v0.4.0 h1:KNV8jnUsjK1VG09P+Yli2FXiTXt+AjB2qgll5hxt4vE=
github.com/sqlc-dev/marino v0.4.0/go.mod h1:mQxC2dgDE0DWHMb2B5jZNk7KToJuS6wnxnffBfYnq08=
github.com/sqlc-dev/meyer v0.1.3 h1:BYdkX2mxT7eET4Q2YtNo4z8ksNAKCumG74lPMJ5CW6c=
github.com/sqlc-dev/meyer v0.1.3/go.mod h1:pS4USCRf/SLjWtaMcnTo4YrEEFKBj8CyyqlxcVUJQH8=
github.com/sqlc-dev/oliphant v0.2.1 h1:uKmCjzyVKeC6garDoTlFlhS5CKwZ7T4eIKa984HG0Cw=
github.com/sqlc-dev/oliphant v0.2.1/go.mod h1:fRM/t4FutRddTIq2YCuS4O9o+2rRwSwELRvLMqtPloo=
github.com/sqlc-dev/teesql v1.2.0 h1:2m4PyIbGlrClvcHA/UU5FSmwJbF77HbgkV6gXj9FwiI=
github.com/sqlc-dev/teesql v1.2.0/go.mod h1:WwOp9UtnxG17+eNFT5KXu/AGBQ8ucdGc8wIOpnj4XCI=
github.com/sqlc-dev/zetajones v0.2.0 h1:MSOmZfik8ue884guNFXV1WoPydNA4kjHZN1U3arPBIM=
github.com/sqlc-dev/zetajones v0.2.0/go.mod h1:dU1DxwqC6Cahbpnw16KpH1J2waWRDMdwyDSvovMZR4I=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
Expand Down
7 changes: 7 additions & 0 deletions internal/engine/mssql/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,13 @@ func dataTypeName(ref tsql.DataTypeReference) *ast.TypeName {
return out
case *tsql.XmlDataTypeReference:
return &ast.TypeName{Name: "xml"}
case *tsql.VectorDataTypeReference:
out := &ast.TypeName{Name: "vector"}
if t.Dimension != nil {
n, _ := strconv.ParseInt(t.Dimension.Value, 10, 64)
out.Typmods = appendTypmod(out.Typmods, &ast.A_Const{Val: &ast.Integer{Ival: n}})
}
return out
case *tsql.UserDataTypeReference:
if t.Name != nil && t.Name.BaseIdentifier != nil {
name := identifierValue(t.Name.BaseIdentifier)
Expand Down
Loading