Преглед на файлове

* Correctly convert string param to bytes

git-svn-id: trunk@39342 -
michael преди 7 години
родител
ревизия
5de8f0cf69
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      packages/fcl-db/src/base/dsparams.inc

+ 2 - 0
packages/fcl-db/src/base/dsparams.inc

@@ -534,6 +534,8 @@ begin
     Result:=nil
   else if VarIsArray(FValue) then
     Result:=FValue
+  else if VarIsStr(FValue) then
+    Result:=BytesOf(VarToStr(FValue))
   else
     // todo: conversion from other variant types to TBytes
     Result:=FValue;