mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-28 21:22:25 -05:00
bump ncruces/go-sqlite3 to v0.21.0 (#3621)
This commit is contained in:
parent
60acdb21a9
commit
fb12bbb10b
42 changed files with 224 additions and 105 deletions
8
vendor/github.com/ncruces/go-sqlite3/conn.go
generated
vendored
8
vendor/github.com/ncruces/go-sqlite3/conn.go
generated
vendored
|
|
@ -501,8 +501,12 @@ func (c *Conn) TableColumnMetadata(schema, table, column string) (declType, coll
|
|||
uint64(declTypePtr), uint64(collSeqPtr),
|
||||
uint64(notNullPtr), uint64(primaryKeyPtr), uint64(autoIncPtr))
|
||||
if err = c.error(r); err == nil && column != "" {
|
||||
declType = util.ReadString(c.mod, util.ReadUint32(c.mod, declTypePtr), _MAX_NAME)
|
||||
collSeq = util.ReadString(c.mod, util.ReadUint32(c.mod, collSeqPtr), _MAX_NAME)
|
||||
if ptr := util.ReadUint32(c.mod, declTypePtr); ptr != 0 {
|
||||
declType = util.ReadString(c.mod, ptr, _MAX_NAME)
|
||||
}
|
||||
if ptr := util.ReadUint32(c.mod, collSeqPtr); ptr != 0 {
|
||||
collSeq = util.ReadString(c.mod, ptr, _MAX_NAME)
|
||||
}
|
||||
notNull = util.ReadUint32(c.mod, notNullPtr) != 0
|
||||
autoInc = util.ReadUint32(c.mod, autoIncPtr) != 0
|
||||
primaryKey = util.ReadUint32(c.mod, primaryKeyPtr) != 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue