mirror of
https://github.com/documize/community.git
synced 2025-07-22 06:39:43 +02:00
support for persona 5.7+ and prep'ed support for MariaDB 10.2+
This commit is contained in:
parent
f12cdfbd45
commit
e31c6e12a2
13 changed files with 768 additions and 682 deletions
|
@ -32,7 +32,7 @@ func (p *Persister) AddDocument(document entity.Document) (err error) {
|
|||
document.Layout = "doc"
|
||||
}
|
||||
|
||||
stmt, err := p.Context.Transaction.Preparex("INSERT INTO document (refId, orgid, labelid, userid, job, location, title, excerpt, slug, tags, template, layout, created, revised) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)")
|
||||
stmt, err := p.Context.Transaction.Preparex("INSERT INTO document (refid, orgid, labelid, userid, job, location, title, excerpt, slug, tags, template, layout, created, revised) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)")
|
||||
defer utility.Close(stmt)
|
||||
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue