@@ -806,16 +806,7 @@ public static async Task CanReadLargeNTextColumn()
806
806
using ( var cmd = cn . CreateCommand ( ) )
807
807
{
808
808
cmd . CommandText = $ """
809
- if exists (select *
810
- from sysobjects
811
- where name = 'Expl_User_Global_Sets_'
812
- and xtype = 'U')
813
-
814
- begin
815
- drop table dbo.Expl_User_Global_Sets_
816
- end
817
-
818
- create table { tableName }
809
+ create table [{ tableName } ]
819
810
(
820
811
User_ID varchar(22) not null,
821
812
StringName varchar(255) not null,
@@ -829,7 +820,7 @@ StringName varchar(255) not null,
829
820
IsProtoCorrected bit default 1
830
821
)
831
822
832
- insert into { tableName } (User_ID, StringName, IsGlobal, List, UseProtoSerializer, ModuleNameForUse,
823
+ insert into [ { tableName } ] (User_ID, StringName, IsGlobal, List, UseProtoSerializer, ModuleNameForUse,
833
824
IsReadOnly, VersionNumber, UserGlobalSet_ID, IsProtoCorrected)
834
825
values ('80004Q4WZ1350KO8NT59RM', '_', 1, '{ stringValue } ', 1, 2, 1, 1, newid(), 1);
835
826
@@ -839,18 +830,10 @@ StringName varchar(255) not null,
839
830
840
831
cmd . CommandText = $ """"
841
832
SELECT
842
- --[gs].[UserGlobalSet_ID],
843
- --[gs].[User_ID],
844
- --[gs].[StringName],
845
- --[gs].[IsGlobal],
846
833
[gs].[List],
847
- [gs].[UseProtoSerializer]--,
848
- --[gs].[ModuleNameForUse],
849
- --[gs].[IsReadOnly],
850
- --[gs].[VersionNumber],
851
- --[gs].[IsProtoCorrected]
834
+ [gs].[UseProtoSerializer],
852
835
FROM
853
- { tableName } [gs]
836
+ [ { tableName } ] [gs]
854
837
WHERE
855
838
([gs].[IsGlobal] = 1 OR [gs].[User_ID] = '{ "80004Q4WZ1350KO8NT59RM" } ') AND
856
839
([gs].[ModuleNameForUse] IS NULL OR [gs].[ModuleNameForUse] = { 2 } )
0 commit comments