Skip to content
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

[SQLServer] insert bool value #437 #697

Open
mvernikUt opened this issue Nov 22, 2023 · 1 comment
Open

[SQLServer] insert bool value #437 #697

mvernikUt opened this issue Nov 22, 2023 · 1 comment

Comments

@mvernikUt
Copy link

mvernikUt commented Nov 22, 2023

The same issue still exists: #437

Could you please specify if am I doing something wrong, because I just need to have generated SQL?

public class ClientMode
  {
      public Guid Id { get; set; }
      public Guid ClientId { get; set; }
      public string Name { get; set; }
      public string Url { get; set; }
      public string Secret { get; set; }
      public string? Version { get; set; }
      public string? DataCsv { get; set; }
      public bool Enabled { get; set; }
  }
var queryBuilder = new Query("ClientMode").AsInsert(entry);
SqlResult result = _sqlCompiler.Compile(queryBuilder);

INSERT INTO [ClientMode] ([Id], [ClientId], [Name], [Url], [Secret], [Version], [DataCsv], [Enabled]) VALUES ('732ae0ec-6409-445d-9dfe-bc77a1ac85d0', '00000000-0000-0000-0000-000000000000', 'test0004', 'test0004', 'CVhulQgha6TpAcEx4rDrTVxBE0DQ11sV', 'test', 'string', true)

Issue:
SQL Server accepts BIT instead of Boolean

@vip32
Copy link

vip32 commented May 27, 2024

this just bit me, still a thing in 2024?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants