Skip to content

Commit bcd613b

Browse files
committed
fix mssql tests
add a note about boolean litterals in mssql
1 parent 65f93fc commit bcd613b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ This is a bugfix release.
1111
- adds support for SQLite's `UPDATE OR REPLACE` syntax
1212
- adds support for MSSQL's `JSON_ARRAY` and `JSON_OBJECT` functions
1313
- adds support for PostgreSQL's `JSON_OBJECT(key : value)` and `JSON_OBJECT(key VALUE value)` syntax
14+
- fixes the parsing of `true` and `false` in Microsoft SQL Server (mssql): they are now correctly parsed as column names, not as boolean values, since mssql does not support boolean literals. This means you may have to replace `TRUE as some_property` with `1 as some_property` in your SQL code when working with mssql.
1415

1516
## 0.32.0 (2024-12-29)
1617

index.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ SELECT 'text' as component, -- We can switch to another component at any time ju
2323
SELECT 'In order to get started, visit ' as contents;
2424
select 'SQLPage''s website' as contents,
2525
'https://sql-page.com/your-first-sql-website/' as link,
26-
true as italics;
26+
1 as italics;
2727
SELECT '. You can replace this page''s contents by creating a file named ' as contents;
2828
SELECT 'index.sql' as contents, 1 as code;
2929
SELECT ' in the folder where sqlpage is running (current working directory: ' as contents;

0 commit comments

Comments
 (0)