Closed KenSv closed 4 years ago
Sample code: var val uint64 val = 2147483648 tx, err := db.Begin() if err != nil { tx.Rollback() } _, err = tx.Exec("insert into test(B1) values(?)", val) if err != nil { fmt.Println(err) } tx.Commit() Firebird DDL: CREATE TABLE TEST ( B1 BIGINT ); Result: B1 = -2147483648 if value = 2147483647, result is positive = 2147483647
use blr_int64 https://github.com/FirebirdSQL/firebird/blob/master/src/include/firebird/impl/blr.h#L44
Thanks for your report
Thank you so much! It's working correct
Sample code: var val uint64 val = 2147483648 tx, err := db.Begin() if err != nil { tx.Rollback() } _, err = tx.Exec("insert into test(B1) values(?)", val) if err != nil { fmt.Println(err) } tx.Commit() Firebird DDL: CREATE TABLE TEST ( B1 BIGINT ); Result: B1 = -2147483648 if value = 2147483647, result is positive = 2147483647