mirror of
https://github.com/documize/community.git
synced 2025-07-25 16:19:46 +02:00
Add comments
This commit is contained in:
parent
5d632712e0
commit
c152d029f2
2 changed files with 3 additions and 4 deletions
|
@ -91,7 +91,6 @@ func (s Store) GetOrganizationByDomain(subdomain string) (o org.Organization, er
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
err = nil
|
|
||||||
|
|
||||||
// match on empty domain AS last resort
|
// match on empty domain AS last resort
|
||||||
err = s.Runtime.Db.Get(&o, s.Bind(`SELECT id, c_refid AS refid,
|
err = s.Runtime.Db.Get(&o, s.Bind(`SELECT id, c_refid AS refid,
|
||||||
|
|
|
@ -26,9 +26,9 @@ type Context struct {
|
||||||
|
|
||||||
// Bind selects query parameter placeholder for given database provider.
|
// Bind selects query parameter placeholder for given database provider.
|
||||||
//
|
//
|
||||||
// MySQL uses ?, ?, ? (default for all Documize queries)
|
// MySQL uses ?, ?, ? (default for all Documize queries).``
|
||||||
// PostgreSQL uses $1, $2, $3
|
// PostgreSQL uses $1, $2, $3.
|
||||||
// MS SQL Server uses @p1, @p2, @p3
|
// MS SQL Server uses @p1, @p2, @p3.
|
||||||
func (c *Context) Bind(sql string) string {
|
func (c *Context) Bind(sql string) string {
|
||||||
// Default to MySQL.
|
// Default to MySQL.
|
||||||
bindParam := sqlx.QUESTION
|
bindParam := sqlx.QUESTION
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue