Subject | .NET Provider Beta3 - reading string |
---|---|
Author | performasoftware |
Post date | 2004-05-19T13:02:50Z |
Hi
I saved the following string via IB Expert into a VarChar(4000) field:
=== begin ===
function JsShowZeroFilled(inValue) {
if(inValue > 9) {
return inValue;
} else {
return '0' + inValue;
}
}
function JsGetWochentagname(wochentag,wochentagtyp,langcode) {
var wochentagname;
array_DE = new Array("SO,Son.,Sonntag", "MO,Mon.,Montag",
"DI,Di.,Dienstag", "MI,Mi.,Mittwoch",
"DO,Don.,Donnerstag","FR,Fr.,Freitag", "SA,Sam.,Samstag");
array_EN = new Array("SU,Su.,Sunday", "MO,Mon.,Monday",
"TU,Tu.,Tuesday", "WE,We.,Wednesday", "DO,Th.,Thursday",
"FR,Fr.,Friday", "SA,Sa.,Saturday");
if (langcode.toUpperCase() == 'DE') {
array_wochentagname = array_DE[wochentag].split(',');
wochentagname = array_wochentagname[wochentagtyp-1];
} else {
array_wochentagname = array_EN[wochentag].split(',');
wochentagname = array_wochentagname[wochentagtyp-1];
}
return wochentagname;
}
=== end ===
This would work fine, but when i read the string with FbDataReader,
the server (WI-V6.3.0.4306 Firebird 1.5) will crash
(log-->C:\Programme\Firebird\Firebird_1_5\bin\fbserver.exe: terminated
abnormally (4294967295)).
- If I only insert the first function-part, it will work.
- If I only insert the second function-part, it will work too.
- If I insert a text which is longer than this part, it will work too.
- Only if i insert this statement, it will crash. Are there to many
tabs or returns in the text?
Thanks for your help. (Can anybody post this message to the
firebird-net-provieder newsgroup, if the problem occurs on test?)
Dominik Fässler
I saved the following string via IB Expert into a VarChar(4000) field:
=== begin ===
function JsShowZeroFilled(inValue) {
if(inValue > 9) {
return inValue;
} else {
return '0' + inValue;
}
}
function JsGetWochentagname(wochentag,wochentagtyp,langcode) {
var wochentagname;
array_DE = new Array("SO,Son.,Sonntag", "MO,Mon.,Montag",
"DI,Di.,Dienstag", "MI,Mi.,Mittwoch",
"DO,Don.,Donnerstag","FR,Fr.,Freitag", "SA,Sam.,Samstag");
array_EN = new Array("SU,Su.,Sunday", "MO,Mon.,Monday",
"TU,Tu.,Tuesday", "WE,We.,Wednesday", "DO,Th.,Thursday",
"FR,Fr.,Friday", "SA,Sa.,Saturday");
if (langcode.toUpperCase() == 'DE') {
array_wochentagname = array_DE[wochentag].split(',');
wochentagname = array_wochentagname[wochentagtyp-1];
} else {
array_wochentagname = array_EN[wochentag].split(',');
wochentagname = array_wochentagname[wochentagtyp-1];
}
return wochentagname;
}
=== end ===
This would work fine, but when i read the string with FbDataReader,
the server (WI-V6.3.0.4306 Firebird 1.5) will crash
(log-->C:\Programme\Firebird\Firebird_1_5\bin\fbserver.exe: terminated
abnormally (4294967295)).
- If I only insert the first function-part, it will work.
- If I only insert the second function-part, it will work too.
- If I insert a text which is longer than this part, it will work too.
- Only if i insert this statement, it will crash. Are there to many
tabs or returns in the text?
Thanks for your help. (Can anybody post this message to the
firebird-net-provieder newsgroup, if the problem occurs on test?)
Dominik Fässler