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
Bug if use Replace with parameter [DNET840] #775
Comments
Modified by: jack128 (jack128)description: script to create db: CREATE DATABASE 'localhost:C:\Data\TEMP_3ED4BB49-EE30-4D79-8038-EBC5C24C536D.FDB' create table TempTable (caption varchar(255)); insert into TempTable values('1'); test:
=> script to create db: CREATE DATABASE 'localhost:C:\Data\TEMP_3ED4BB49-EE30-4D79-8038-EBC5C24C536D.FDB' create table TempTable (caption varchar(255)); insert into TempTable values('1'); test:
|
Modified by: @cincuranetstatus: Open [ 1 ] => In Progress [ 3 ] |
Commented by: @cincuranet The problem is that the replacement "'~~'" is CHAR(2) and hence the comparison with "caption" does not match. If you'd do "Replace(@p, '~', cast('~~' as varchar(255)))", it would work as expected. |
Submitted by: jack128 (jack128)
script to create db:
CREATE DATABASE 'localhost:C:\Data\TEMP_3ED4BB49-EE30-4D79-8038-EBC5C24C536D.FDB'
USER 'SYSDBA' PASSWORD 'masterkey';
create table TempTable (caption varchar(255));
insert into TempTable values('1');
commit;
test:
static void Main(string[] args)
{
var filename = @"C:\Data\Temp_3ED4BB49-EE30-4D79-8038-EBC5C24C536D.fdb";
The text was updated successfully, but these errors were encountered: