3
SQLite에 액세스하기 위해 FireDAC과 함께 Delphi XE7을 사용하고 있습니다.SQLite FireDAC 후행 공백
TEXT 필드에 데이터를 넣으면 후행 공백 또는 # 0 문자가 잘립니다.
SQLite 또는 FireDAC에서 후행 공백을 유지하기 위해 변경할 수있는 것이 있습니까?
// The trailing spaces after Command don't come back from SQLite.
fFireDACQuery.ParamByName(kSQLFieldScriptCommands).AsString := 'Command ';
에서 ['FormatOptions.StrsTrim'] (http://docwiki.embarcadero.com/Libraries/XE7/en/FireDAC. Stan.Option.TFDFormatOptions.StrsTrim) 속성을 False로 설정합니다. – TLama
P. 'StrsTrim' 속성의 초기 설명과 혼동하지 마십시오. * "SQLite의 경우,이 속성은 ftMemo, ftWideMemo, ftString, ftWideString, ftFixedChar 및 ftFixedWideChar를 포함한 모든 문자열 열에 적용됩니다."* 이는 귀하의 경우입니다. – TLama
좋은 답변처럼 들리지만, 아래의 "답변"아래에 댓글로 게시하는 이유는 무엇입니까? –