mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +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 {
|
||||
return
|
||||
}
|
||||
err = nil
|
||||
|
||||
// match on empty domain AS last resort
|
||||
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.
|
||||
//
|
||||
// MySQL uses ?, ?, ? (default for all Documize queries)
|
||||
// PostgreSQL uses $1, $2, $3
|
||||
// MS SQL Server uses @p1, @p2, @p3
|
||||
// MySQL uses ?, ?, ? (default for all Documize queries).``
|
||||
// PostgreSQL uses $1, $2, $3.
|
||||
// MS SQL Server uses @p1, @p2, @p3.
|
||||
func (c *Context) Bind(sql string) string {
|
||||
// Default to MySQL.
|
||||
bindParam := sqlx.QUESTION
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue