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
15371c0d
Commit
15371c0d
authored
Jul 31, 2015
by
gwenn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trim tail.
parent
492aec2b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
.travis.yml
.travis.yml
+7
-4
bench_test.go
bench_test.go
+1
-0
stmt.go
stmt.go
+2
-1
No files found.
.travis.yml
View file @
15371c0d
language
:
go
sudo
:
false
go
:
-
1.4
-
tip
before_install
:
-
echo "yes" | sudo add-apt-repository ppa:travis-ci/sqlite3
-
sudo apt-get update -qq
-
sudo apt-get install -qq libsqlite3-dev
addons
:
apt
:
sources
:
-
debian-sid
packages
:
-
libsqlite3-dev
install
:
-
go get github.com/gwenn/yacr
-
go get -tags all github.com/gwenn/gosqlite
...
...
bench_test.go
View file @
15371c0d
...
...
@@ -7,6 +7,7 @@ package sqlite_test
import
(
"strings"
"testing"
.
"github.com/gwenn/gosqlite"
)
...
...
stmt.go
View file @
15371c0d
...
...
@@ -36,6 +36,7 @@ import (
"fmt"
"math"
"reflect"
"strings"
"time"
"unsafe"
)
...
...
@@ -109,7 +110,7 @@ func (c *Conn) prepare(sql string, args ...interface{}) (*Stmt, error) {
if
tail
!=
nil
&&
*
tail
!=
'\000'
{
t
=
C
.
GoString
(
tail
)
}
s
:=
&
Stmt
{
c
:
c
,
stmt
:
stmt
,
tail
:
t
,
columnCount
:
-
1
,
bindParameterCount
:
-
1
}
s
:=
&
Stmt
{
c
:
c
,
stmt
:
stmt
,
tail
:
strings
.
TrimSpace
(
t
)
,
columnCount
:
-
1
,
bindParameterCount
:
-
1
}
if
len
(
args
)
>
0
{
err
:=
s
.
Bind
(
args
...
)
if
err
!=
nil
{
...
...
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