Permalink
Browse files

exclude UID from stackoverflow.com links comments

  • Loading branch information...
Arnaud Bouchez
Arnaud Bouchez committed Jan 7, 2019
1 parent 18ad347 commit cdb098b36b727edd9198ee80466a4719ca927f7e
Showing with 17 additions and 17 deletions.
  1. +1 −1 SQLite3/mORMotHttpClient.pas
  2. +1 −1 SQLite3/mORMotHttpServer.pas
  3. +4 −4 SynCommons.pas
  4. +2 −2 SynDB.pas
  5. +2 −2 SynFPCLinux.pas
  6. +2 −2 SynOleDB.pas
  7. +1 −1 SynOpenSSL.pas
  8. +1 −1 SynTable.pas
  9. +2 −2 SynZip.pas
  10. +1 −1 SynopseCommit.inc
@@ -170,7 +170,7 @@ interface
// - hcSynShaAes will use SHA-256/AES-256-CFB to encrypt the content (after
// SynLZ compression), via SynCrypto.CompressShaAes() function
// - here hcDeflate will use in fact gzip content encoding, since deflate
// is inconsistent between browsers: http://stackoverflow.com/a/9186091/458259
// is inconsistent between browsers: http://stackoverflow.com/a/9186091
// - TSQLHttpClientGeneric.Compression default property is [hcSynLZ]
TSQLHttpCompression = (hcSynLZ, hcDeflate, hcSynShaAes);

@@ -169,7 +169,7 @@ interface
{ if defined, will use gzip (and not deflate/zip) for content compression
- can be set global for Client and Server applications
- deflate/zip is just broken between browsers and client, and should be
avoided: see http://stackoverflow.com/a/9186091/458259
avoided: see http://stackoverflow.com/a/9186091
- SynLZ is faster but only known by Delphi clients: you can enable deflate
when the server is connected an AJAX application (not defined by default)
- if you define both COMPRESSSYNLZ and COMPRESSDEFLATE, the server will use
@@ -13161,7 +13161,7 @@ function SystemInfoJson: RawUTF8;
wSeven, wSeven_64, wServer2008_R2, wServer2008_R2_64,
wEight, wEight_64, wServer2012, wServer2012_64,
wEightOne, wEightOne_64, wServer2012R2, wServer2012R2_64,
wTen, wTen_64, wServer2016, wServer2016_64);
wTen, wTen_64, wServer2016, wServer2016_64, wServer2019_64);
/// the running Operating System, encoded as a 32-bit integer
TOperatingSystemVersion = packed record
case os: TOperatingSystem of
@@ -17986,7 +17986,7 @@ function TSynAnsiConvert.AnsiBufferToUTF8(Dest: PUTF8Char;
end;

// UTF-8 is AT MOST 50% bigger than UTF-16 in bytes in range U+0800..U+FFFF
// see http://stackoverflow.com/a/7008095/458259 -> WideCharCount*3 below
// see http://stackoverflow.com/a/7008095 -> WideCharCount*3 below

procedure TSynAnsiConvert.InternalAppendUTF8(Source: PAnsiChar; SourceChars: Cardinal;
DestTextWriter: TObject; Escape: TTextWriterKind);
@@ -26833,7 +26833,7 @@ procedure RetrieveSystemInfo;
10: Vers := wTen;
end;
if Vers>=wVista then begin

if OSVersionInfo.wProductType<>VER_NT_WORKSTATION then begin // Server edition
inc(Vers,2); // e.g. wEight -> wServer2012
if OSVersionInfo.dwBuildNumber>=17763 then // https://stackoverflow.com/q/53393150
inc(Vers, 2); // wServer2016 -> wServer2019_64
@@ -63727,7 +63727,7 @@ procedure SetThreadNameDefault(ThreadID: TThreadID; const Name: RawUTF8);

{$ifdef KYLIX3}
type
// see http://stackoverflow.com/a/3085509/458259 about this known Kylix bug
// see http://stackoverflow.com/a/3085509 about this known Kylix bug
TEventHack = class(THandleObject) // should match EXACTLY SyncObjs.pas source!
private
FEvent: TSemaphore;
@@ -6052,7 +6052,7 @@ procedure ComputeSQL(rowcount,offset: integer);
SQLCached := false; // ftUTF8 values will have varying field length
end;
dOracle: begin // INSERT ALL INTO ... VALUES ... SELECT 1 FROM DUAL
AddShort('insert all'#10); // see http://stackoverflow.com/a/93724/458259
AddShort('insert all'#10); // see http://stackoverflow.com/a/93724
for r := 1 to rowcount do begin
AddShort('into ');
AddString(TableName);
@@ -6110,7 +6110,7 @@ procedure ComputeSQL(rowcount,offset: integer);
paramCountLimit := 0;
case Props.fDBMS of
// values below were done empirically, assuring < 667 (maximum :AA..:ZZ)
// see http://stackoverflow.com/a/6582902/458259 for theoritical high limits
// see http://stackoverflow.com/a/6582902 for theoritical high limits
dSQlite: paramCountLimit := 200; // theoritical=999
dMySQL: paramCountLimit := 500; // theoritical=60000
dPostgreSQL: paramCountLimit := 500; // theoritical=34000
@@ -257,7 +257,7 @@ function GetTickCount: cardinal;
C_BILLION = Int64(C_THOUSAND * C_THOUSAND * C_THOUSAND);

{$ifdef DARWIN}
// clock_gettime() is not implemented: http://stackoverflow.com/a/5167506/458259
// clock_gettime() is not implemented: http://stackoverflow.com/a/5167506

type
TTimebaseInfoData = record
@@ -457,7 +457,7 @@ procedure GetKernelRevision;
Loaded: boolean;
{$ifdef LINUX}
pthread: pointer;
{$ifdef LINUXNOTBSD} // see https://stackoverflow.com/a/7989973/458259
{$ifdef LINUXNOTBSD} // see https://stackoverflow.com/a/7989973
pthread_setname_np: function(thread: pointer; name: PAnsiChar): LongInt; cdecl;
{$endif LINUXNOTBSD}
{$endif LINUX}
@@ -49,13 +49,13 @@
Several implementation notes about Oracle and OleDB:
- Oracle OleDB provider by Microsoft do not handle BLOBs. Period. :(
- Oracle OleDB provider by Oracle will handle only 3/4 BLOBs. :(
See http://stackoverflow.com/questions/6147274/is-oraoledb-provider-in-net-unreliable-on-clob-fields/6640101#6640101
See https://stackoverflow.com/a/6640101
- Oracle OleDB provider by Oracle or Microsoft could trigger some ORA-80040e4B
error when accessing column data with very low dates value (like 0001-01-01)
- in all cases, that's why we wrote the SynDBOracle unit, for direct OCI
access - and it is from 2 to 10 times faster than OleDB, with no setup issue
- or take a look at latest patches from Oracle support, and pray it's fixed ;)
http://stackoverflow.com/questions/6147274/is-oraoledb-provider-in-net-unreliable-on-clob-fields/6661058#6661058
https://stackoverflow.com/a/6661058
Version 1.14
@@ -405,7 +405,7 @@ TOpenSSLConnectionClient = class;
// - if you work with a lot of concurrent long-living connections (e.g. when
// implementing a server), you may dramatically reduce the memory consumption
// (to the prive of a slight performance degradation) by setting
// ocoNoReleaseBuffers - see http://stackoverflow.com/a/19294527/458259
// ocoNoReleaseBuffers - see http://stackoverflow.com/a/19294527
// - for security reasons (i.e. to prevent BREACH and CRIME vulnerabilities),
// and also to reduce memory consumption, TLS compression is disabled by
// default: set ocoEnabledCompression to enable this unsafe feature
@@ -6127,7 +6127,7 @@ constructor TSynBloomFilter.Create(aSize: integer; aFalsePositivePercent: double
if aFalsePositivePercent>100 then
fFalsePositivePercent := 100 else
fFalsePositivePercent := aFalsePositivePercent;
// see http://stackoverflow.com/a/22467497/458259
// see http://stackoverflow.com/a/22467497
fBits := Round(-ln(fFalsePositivePercent/100)*aSize/(LN2*LN2));
fHashFunctions := Round(fBits/fSize*LN2);
if fHashFunctions=0 then
@@ -315,15 +315,15 @@ function CompressGZip(var DataRawByteString; Compress: boolean): AnsiString;
// - will use internaly a level compression of 1, i.e. fastest available (content
// of 4803 bytes is compressed into 700, and time is 440 us instead of 220 us)
// - deflate content encoding is pretty inconsistent in practice, so slightly
// slower CompressGZip() is preferred - http://stackoverflow.com/a/9186091/458259
// slower CompressGZip() is preferred - http://stackoverflow.com/a/9186091
function CompressDeflate(var DataRawByteString; Compress: boolean): AnsiString;

/// (un)compress a data content using the zlib algorithm
// - as expected by THttpSocket.RegisterCompress
// - will use internaly a level compression of 1, i.e. fastest available (content
// of 4803 bytes is compressed into 700, and time is 440 us instead of 220 us)
// - zlib content encoding is pretty inconsistent in practice, so slightly
// slower CompressGZip() is preferred - http://stackoverflow.com/a/9186091/458259
// slower CompressGZip() is preferred - http://stackoverflow.com/a/9186091
function CompressZLib(var DataRawByteString; Compress: boolean): AnsiString;

/// low-level check of the code returned by the ZLib library
@@ -1 +1 @@
'1.18.4941'
'1.18.4942'

0 comments on commit cdb098b

Please sign in to comment.