Remove "Created" date/time from SQL export header. Fixes issue #3083.

This commit is contained in:
Ansgar Becker
2013-01-14 20:33:31 +00:00
parent d630989541
commit 0d6945ebcc

View File

@ -1209,11 +1209,10 @@ begin
end; end;
if not FHeaderCreated then begin if not FHeaderCreated then begin
Header := '-- --------------------------------------------------------' + CRLF + Header := '-- --------------------------------------------------------' + CRLF +
Format('-- %-30s:%s', [_('Host'), DBObj.Connection.Parameters.HostName]) + CRLF + Format('-- %-30s%s', [_('Host')+':', DBObj.Connection.Parameters.HostName]) + CRLF +
Format('-- %-30s:%s', [_('Server version'), DBObj.Connection.ServerVersionUntouched]) + CRLF + Format('-- %-30s%s', [_('Server version')+':', DBObj.Connection.ServerVersionUntouched]) + CRLF +
Format('-- %-30s:%s', [_('Server OS'), DBObj.Connection.ServerOS]) + CRLF + Format('-- %-30s%s', [_('Server OS')+':', DBObj.Connection.ServerOS]) + CRLF +
Format('-- %-30s:%s', [APPNAME + ' ' + _('Version'), Mainform.AppVersion]) + CRLF + Format('-- %-30s%s', [APPNAME + ' ' + _('Version')+':', Mainform.AppVersion]) + CRLF +
Format('-- %-30s:%s', [_('Created'), DateTimeToStr(Now)]) + CRLF +
'-- --------------------------------------------------------' + CRLF + CRLF + '-- --------------------------------------------------------' + CRLF + CRLF +
'/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;' + CRLF + '/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;' + CRLF +
'/*!40101 SET NAMES '+DBObj.Connection.CharacterSet+' */;' + CRLF + '/*!40101 SET NAMES '+DBObj.Connection.CharacterSet+' */;' + CRLF +