Quantcast
Channel: SCN: Message List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 3587

Bug in ADO drivers with using [ ] around Identifiers

$
0
0

For anyone using the ADO driver, we've found a bug

When using [ ] around Identifiers, the ComandText gets truncated after the

 

var command = this.Connection.CreateCommand();

command.CommandType = CommandType.StoredProcedure;

 

string commandText = String.Format("[{0}].[{1}].[{2}]", database, schema, storedProcedure);

command.CommandText = commandText;     //command text should be "[MyDatabase].[dbo].[MyStoredProc]"

           

Console.WriteLine("CommandText = " + command.CommandText);

 

This should contain "[MyDatabase].[dbo].[MyStoredProc]"

but Sybase outputs: "MyDatabase"

 

What's happened to the rest of the string ?

 

The bug exists in both SDK SP127 and SP130 in the "internal string CommandText" method of AseCommand.


Viewing all articles
Browse latest Browse all 3587

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>