mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19:43 +02:00
Add experimental string to timestamp for backup/restore
This commit is contained in:
parent
3913995dd0
commit
1d8bb2d3ad
3 changed files with 25 additions and 14 deletions
|
@ -280,3 +280,12 @@ func (p PostgreSQLProvider) VerfiyCharacterCollation(charset, collation string)
|
|||
|
||||
return true, ""
|
||||
}
|
||||
|
||||
// ConvertTimestamp returns SQL function to correctly convert
|
||||
// ISO 8601 format (e.g. '2016-09-08T06:37:23Z') to SQL specific
|
||||
// timestamp value (e.g. 2016-09-08 06:37:23).
|
||||
// Must use ? for parameter placeholder character as DB layer
|
||||
// will convert to database specific parameter placeholder character.
|
||||
func (p PostgreSQLProvider) ConvertTimestamp() (statement string) {
|
||||
return `to_timestamp(?,'YYYY-MM-DD HH24:MI:SS')`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue