Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gosqlite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gosqlite
Commits
0178feae
Commit
0178feae
authored
Feb 19, 2012
by
gwenn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix doc.
parent
d89b089f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
meta.go
meta.go
+2
-2
sqlite.go
sqlite.go
+7
-7
No files found.
meta.go
View file @
0178feae
...
...
@@ -84,8 +84,8 @@ type Column struct {
NotNull
bool
DfltValue
string
// FIXME type ?
Pk
bool
Autoinc
bool
CollSeq
string
Autoinc
bool
CollSeq
string
}
// Executes pragma 'table_info'
...
...
sqlite.go
View file @
0178feae
...
...
@@ -862,7 +862,7 @@ func (s *Stmt) NamedScan(args ...interface{}) error {
// // TODO error handling
//
// NULL value is converted to 0 if arg type is *int,*int64,*float,*float64, to "" for *string, to []byte{} for *[]byte and to false for *bool.
// T
ODO How to avoid NULL conversion?
// T
o avoid NULL conversion, arg type must be **T
// Calls sqlite3_column_count and sqlite3_column_(blob|double|int|int64|text) depending on args type.
// http://sqlite.org/c3ref/column_blob.html
func
(
s
*
Stmt
)
Scan
(
args
...
interface
{})
error
{
...
...
@@ -918,13 +918,13 @@ func (s *Stmt) ScanByName(name string, value interface{}) (bool, error) {
// The leftmost column/index is number 0.
//
// Destination type is specified by the caller.
// Destination type is specified by the caller
(except when value type is *interface{})
.
// The value must be of one of the following types:
//
*string
//
*int, *int64,
*byte,
// *bool
// *float64
// *[]byte
//
(*)*string,
//
(*)*int, (*)*int64, (*)
*byte,
//
(*)
*bool
//
(*)
*float64
//
(*)
*[]byte
// *interface{}
//
// Returns true when column is null and Stmt.CheckNull is activated.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment