You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This does not seem correct to me.
Neither 50 or NULL are placeholder values.
CREATETABLEpuf2017 (
Id int IDENTITY,
DrugTier nvarchar(max) NOT NULL,
PriorAuthorization bitNOT NULL,
QuantityLimit bitNOT NULL,
StepTherapy bitNOT NULL,
StandardComponentId nvarchar(50) NOT NULL,
BusinessYear intNOT NULL
)
GO
CREATETABLEpuf2017 (
Id int IDENTITY,
DrugTier nvarchar(max) NOT ?,
PriorAuthorization bit NOT ?,
QuantityLimit bit NOT ?,
StepTherapy bit NOT ?,
StandardComponentId nvarchar(?) NOT ?,
BusinessYear int NOT ?
)
GO
These tests pass so the sanitation is definitely to blame, not lexing:
#[test]fntest_not_null(){let sql = "NOT NULL";let written = helpers::lex_and_write(sql.to_string());assert_eq!(written,sql);}#[test]fntest_std_cmpnt_id(){let sql = "StandardComponentId nvarchar(50) NOT NULL";let written = helpers::lex_and_write(sql.to_string());assert_eq!(written,sql);}
The text was updated successfully, but these errors were encountered:
phrohdoh
changed the title
NULL 'sanitized' to ?
NULL and number literals converted to ?
Oct 23, 2016
Upon further investigation this is more clear as Create and Table are not keywords.
I may give this a shot in my freetime over at my fork, if anyone is interested.
Indeed. We didn't need schemas for our use case of sanitizing queries that commonly occur in ActiveRecord. I would like to support this though. I'll add support for this, but have to see when I can find some time :-).
If you'd like to take a stab, that'd be great too.
This does not seem correct to me.
Neither
50
orNULL
are placeholder values.These tests pass so the sanitation is definitely to blame, not lexing:
The text was updated successfully, but these errors were encountered: