Coder Social home page Coder Social logo

mysqlgo's People

Contributors

eden avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

geoffos strogo

mysqlgo's Issues

install error

Hi,
I get an error when installing !!

[02:11:37| userName :/temps/go/mysqlgo > make install
cd db; make install
make[1]: Nothing to be done for `install'.
cd mysql; make install
/Users/userName/bin/6g -o go.6 const.go bound_data.go mysql.cgo1.go _cgo_gotypes.go
mysql.cgo1.go:248: undefined: strings.Bytes
make[1]: *** [go.6] Error 1
make: *** [mysql_install] Error 2
[02:11:38| userName :
/temps/go/mysqlgo >

no support for unsigned bigint/uint64?

I'm in the process of building a backup program in go. As you might imagine I want to store a stat entry in a database. The go stat entry is mentioned in:
http://golang.org/pkg/os/#Dir

I created a table with:
create table dirs (dev BIGINT UNSIGNED, Ino BIGINT UNSIGNED, Nlink BIGINT UNSIGNED, Mode INT UNSIGNED, UID INT UNSIGNED, Gid INT UNSIGNED, Rdev BIGINT UNSIGNED, Size BIGINT UNSIGNED, Blksize BIGINT UNSIGNED, Blocks BIGINT UNSIGNED, Atime_ns BIGINT UNSIGNED, Mtime_ns BIGINT UNSIGNED, Ctime_ns BIGINT UNSIGNED, Name VARCHAR(512), FollowedSymLink TINYINT(1));

When I try to popular it it seems like that type is unsupported:
dir = /home/bill/src/go inode= 7856502
Error: Unsupported param type *reflect.Uint64Value

I believe the line that triggered this was:
stmt, e = conn.Prepare("INSERT INTO dirs values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
_, e = conn.Execute(stmt, d.Dev,d.Ino,d.Nlink,d.Mode,d.Uid,d.Gid,d.Rdev,d.Size,d.Blksize,d.Blocks,d.Atime_ns,d.Mtime_ns,d.Ctime_ns,d.Name,follow);

follow is just an int that is 1 or zero because there wasn't support for boolean, which is rather easy to work around.

Hopefully this is a real problem, and not a mistake of mine.

BTW, great job on mysqlgo. It was very easy to download, install, and the inclusion of a working example was particularly nice.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.