mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19:43 +02:00
Make store SQL Server compatible
This commit is contained in:
parent
9ec858286f
commit
64403c402b
17 changed files with 112 additions and 50 deletions
|
@ -354,6 +354,16 @@ func (p MySQLProvider) ConvertTimestamp() (statement string) {
|
|||
return `STR_TO_DATE(?,'%Y-%m-%d %H:%i:%s')`
|
||||
}
|
||||
|
||||
// IsTrue returns "1"
|
||||
func (p MySQLProvider) IsTrue() string {
|
||||
return "1"
|
||||
}
|
||||
|
||||
// IsFalse returns "0"
|
||||
func (p MySQLProvider) IsFalse() string {
|
||||
return "0"
|
||||
}
|
||||
|
||||
// convertDatabaseVersion turns database version string as major,minor,patch numerics.
|
||||
func convertDatabaseVersion(v string) (ints []int, err error) {
|
||||
ints = []int{0, 0, 0}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue