Skip to content

Commit

Permalink
update mysql database check sql
Browse files Browse the repository at this point in the history
  • Loading branch information
agile.zhou committed Mar 29, 2023
1 parent 245fa9f commit 46f3b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AgileConfig.Server.Data.Freesql/EnsureTables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class EnsureTables
"SELECT count(1) FROM sqlite_master WHERE type='table' AND name = 'agc_app'";

private const string Mysql_ExistTableSql =
" SELECT count(1) FROM information_schema.TABLES WHERE table_schema=?schema AND table_name ='agc_app'";
" SELECT count(1) FROM information_schema.TABLES WHERE table_schema= @schema AND table_name ='agc_app'";

private const string SqlServer_ExistTableSql =
"SELECT COUNT(1) FROM dbo.SYSOBJECTS WHERE ID = object_id(N'[dbo].[agc_app]') and OBJECTPROPERTY(id, N'IsUserTable') = 1";
Expand Down

0 comments on commit 46f3b4d

Please sign in to comment.