Repository navigation
mssql: close SQL Server analysis and codegen gaps #1
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
Closed
Closed
Changes from all commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
41babf6
mssql: make the optional side of outer joins nullable
EliSauder 81803a4
mssql: support CROSS APPLY and OUTER APPLY
EliSauder 63e879d
mssql: type TOP and OFFSET/FETCH parameters as bigint
EliSauder 0f54b3d
mssql: pass the datepart of DATEADD and its relatives as a keyword
EliSauder 54cc315
mssql: support recursive common table expressions
EliSauder b00412c
mssql: support OPENJSON, STRING_SPLIT and GENERATE_SERIES in FROM
EliSauder 53bc773
mssql: type AT TIME ZONE
EliSauder ebc30aa
mssql: support sqlc.arg, sqlc.narg and sqlc.slice
EliSauder 8ba7824
mssql: support sqlc.embed
EliSauder bdee10d
core: let set operation branches see the enclosing query
EliSauder 8312412
mssql: support VALUES as a derived table
EliSauder ea9df4d
mssql: seed common built-in functions
EliSauder d23c817
mssql: type mixed arithmetic by data type precedence
EliSauder ae484df
mssql: resolve INSERTED and DELETED in OUTPUT against the target
EliSauder 0143d2c
mssql: type TRY_CAST and TRY_CONVERT as nullable
EliSauder ac276a8
mssql: type PARSE and TRY_PARSE
EliSauder e8f1b01
mssql: type @@ROWCOUNT and the other system variables
EliSauder ee02571
mssql: support PIVOT and UNPIVOT in FROM
EliSauder 7db97f4
mssql: quote expanded identifiers with brackets
EliSauder c1ad6db
mssql: type ISNULL as nullable only when both arguments are
EliSauder 2e61a8c
mssql: type computed columns by their expression
EliSauder 11a28e1
mssql: report a named query sqlc cannot analyze
EliSauder e60c401
golang: make a single result column's variable a Go identifier
EliSauder 783c094
mssql: type FOR JSON and FOR XML results
EliSauder 7292623
mssql: support views
EliSauder 4822695
mssql: type set operation columns from every branch
EliSauder 1e9e0bd
golang: read a result variable's first character as a rune
EliSauder 70a7150
golang: expand every use of a named slice
EliSauder bb4e527
mssql: expand a star qualified with double quotes
EliSauder 89088c5
mssql: embed a table only when the star is all of its columns
EliSauder ca3c8e0
core: keep a WITH clause's names out of the enclosing query
EliSauder 2256c3f
mssql: leave bracketed identifiers alone when preprocessing
EliSauder 29109a2
mssql: reject a macro name that is not a valid @name
EliSauder a63e9ed
mssql: keep the length and precision of a computed column
EliSauder 6c8bf76
mssql: count int and bit as decimals when combining types
EliSauder a42d1e1
mssql: type CASE, COALESCE, GREATEST, LEAST and CHOOSE by precedence
EliSauder 784fef5
mssql: seed ROUND with its function argument
EliSauder a99032c
mssql: type DATEADD and DATETRUNC over a string date
EliSauder 637b47c
mssql: report an unsupported query named in a block comment
EliSauder 6b38d72
mssql: keep the placeholder in TOP (@n) PERCENT
EliSauder fb5722d
mssql: keep the placeholders of FOR SYSTEM_TIME
EliSauder 43b8e5c
mssql: keep the placeholders of CONTAINS and FREETEXT
EliSauder c92fc3e
validate: allow an INSERT whose VALUES has no FROM list
EliSauder 6b661b5
golang: reject :execlastid for SQL Server
EliSauder a5dfd49
mssql: support WITH on INSERT
EliSauder e8c0057
mssql: apply ALTER TABLE ALTER COLUMN
EliSauder 2f48b4b
mssql: apply sp_rename to tables and columns
EliSauder d866aba
mssql: apply the schema changes in IF and BEGIN ... END blocks
EliSauder 26bfd8a
mssql: type NEXT VALUE FOR a sequence
EliSauder 937787e
mssql: type a call to a scalar function the schema creates
EliSauder e3e6264
mssql: select from a table-valued function the schema creates
EliSauder f8a773f
mssql: select from a synonym the schema creates
EliSauder 886e8f5
mssql: type the methods of xml, geography, geometry and hierarchyid
EliSauder 7e19529
core: type a placeholder INSERT ... SELECT inserts as its column
EliSauder 170e54a
core: type a placeholder among alternatives as the others combine
EliSauder 33db6e4
mssql: gofmt typeMethods
EliSauder a7951ed
mssql: seed more built-in functions
EliSauder 4358b1c
mssql: apply ALTER SCHEMA ... TRANSFER
EliSauder 67d9190
mssql: type LEFT, RIGHT and TRIM(chars FROM string)
EliSauder baf1ec3
mssql: take REPLICATE's and CHARINDEX's integer arguments as int
EliSauder 4e345d0
mssql: type an N'...' literal as nvarchar
EliSauder 3257c15
core: find the family of a type given default arguments
EliSauder b4cbd83
mssql: type a number with a decimal point as decimal
EliSauder 2ffa47b
golang: map SQL Server decimal to decimal.Decimal and money to mssql.…
EliSauder c899fe5
golang: map a nullable uniqueidentifier to *mssql.UniqueIdentifier
EliSauder fccb542
mssql: report a placeholder the converter drops
EliSauder f59fb16
mssql: keep the placeholder in CONVERT's style
EliSauder 99b6601
mssql: keep the placeholders of TABLESAMPLE
EliSauder 14a031f
core: type a set operation column of an argument-free type as its family
EliSauder a13cdbc
core: stop pairing INSERT ... SELECT items with columns after a star
EliSauder 38f9390
mssql: leave sqlc.embed out of the @name check
EliSauder cbc8adc
mssql: read a placeholder's name through #, $ and @
EliSauder 600b393
mssql: measure a star qualifier with escaped quotes as written
EliSauder f2dbfc7
mssql: embed a table only when its columns are as nullable as the tab…
EliSauder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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
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.
Uh oh!
There was an error while loading. Please reload this page.