Changeset 99 for trunk/Packages/CoolWeb/Persistence
- Timestamp:
- Oct 2, 2012, 2:12:16 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CoolWeb/Persistence/USqlDatabase.pas
r84 r99 55 55 LastUsedTable: string; 56 56 LastQuery: string; 57 function EscapeString(Text: string): string; 57 58 procedure CreateDatabase; 58 59 procedure CreateTable(Name: string); … … 451 452 end; 452 453 454 function TSqlDatabase.EscapeString(Text: string): string; 455 var 456 L: Integer; 457 begin 458 SetLength(Result, Length(Text) * 2 + 1); 459 L := mysql_real_escape_string(FSession, PChar(Result), PChar(Text), Length(Text)); 460 SetLength(Result, L); 461 end; 462 453 463 { TDbRows } 454 464
Note:
See TracChangeset
for help on using the changeset viewer.