@@ -222,23 +222,28 @@ public override void Translate(IOutput output, SqlMatchType mt)
222
222
} ) ;
223
223
}
224
224
225
+ ///// <inheritdoc/>
226
+ //public override string TranslateToString(SqlCompilerContext context, SchemaNode node)
227
+ //{
228
+ // //temporary tables need no schema qualifier
229
+ // if (node is TemporaryTable || node.Schema == null) {
230
+ // return QuoteIdentifier(new[] { node.Name });
231
+ // }
232
+ // return QuoteIdentifier(new[] { node.Schema.Name, node.Name });
233
+ //}
234
+
225
235
/// <inheritdoc/>
226
- public override string TranslateToString ( SqlCompilerContext context , SchemaNode node )
236
+ public override void Translate ( SqlCompilerContext context , SchemaNode node )
227
237
{
228
- //temporary tables need no schema qualifier
229
- if ( ! ( node is TemporaryTable ) && node . Schema != null ) {
230
- return context == null
231
- ? QuoteIdentifier ( new [ ] { node . Schema . Name , node . Name } )
232
- : QuoteIdentifier ( new [ ] { context . SqlNodeActualizer . Actualize ( node . Schema ) , node . Name } ) ;
233
-
238
+ if ( node is TemporaryTable ) {
239
+ TranslateIdentifier ( context . Output , node . Name ) ;
240
+ }
241
+ else {
242
+ base . Translate ( context , node ) ;
234
243
}
235
- return QuoteIdentifier ( new [ ] { node . Name } ) ;
244
+ //context.Output.Append(TranslateToString(context, node) );
236
245
}
237
246
238
- /// <inheritdoc/>
239
- public override void Translate ( SqlCompilerContext context , SchemaNode node ) =>
240
- context . Output . Append ( TranslateToString ( context , node ) ) ;
241
-
242
247
/// <inheritdoc/>
243
248
public override void Translate ( SqlCompilerContext context , SqlCreateTable node , CreateTableSection section )
244
249
{
@@ -309,9 +314,9 @@ protected virtual void AppendIndexStorageParameters(IOutput output, Index index)
309
314
/// <inheritdoc/>
310
315
public override void Translate ( SqlCompilerContext context , SqlDropIndex node )
311
316
{
317
+ var index = node . Index ;
312
318
_ = context . Output . Append ( "DROP INDEX " ) ;
313
- TranslateIdentifier ( context . Output ,
314
- context . SqlNodeActualizer . Actualize ( node . Index . DataTable . Schema ) , node . Index . Name ) ;
319
+ TranslateIdentifier ( context . Output , index . DataTable . Schema . DbName , index . DbName ) ;
315
320
}
316
321
317
322
/// <inheritdoc/>
0 commit comments