소스 검색

* 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;