Francisco Obispo 7f328975cd When using the LogMode(true), the SQL produced during the log message, places the bounded variables in the wrong location, this is due to the fact that the current implementation splits the values with a regex similar to: ($\d+)|?.
That works well for ? placeholders because they should be replaced in order.

However, the numeric placeholders should be replaced based on their value, for instance:

SELECT name,last FROM contact WHERE name=$2 and age=$1
Should NOT be replaced in order, because it will yield an incorrectly formed SQL command, which is not very useful for debugging.

Fixes issue: #1249
2016-11-09 17:05:21 -08:00
2016-07-11 21:37:44 +08:00
2015-08-22 08:46:46 +08:00
2016-02-29 22:06:15 +08:00
2016-03-08 22:00:15 +08:00
2016-03-08 22:00:15 +08:00
2016-03-09 20:44:31 +08:00
2014-08-28 16:14:44 +08:00
2015-11-16 10:57:12 +08:00
2016-02-15 14:59:15 +08:00
2016-08-13 21:05:24 +08:00
2014-01-28 16:29:42 +08:00
2016-03-07 17:49:55 +08:00
2015-01-05 08:59:18 +08:00
2016-06-28 11:15:42 +08:00
2016-03-08 22:00:15 +08:00
2016-01-15 21:16:48 +08:00
2016-03-08 22:29:58 +08:00
2016-05-04 21:13:24 +08:00
2016-06-24 07:48:03 +08:00
2015-03-12 15:50:38 +08:00
2016-06-28 11:15:42 +08:00
2016-02-20 23:34:33 +08:00
2016-08-13 21:05:24 +08:00

GORM

The fantastic ORM library for Golang, aims to be developer friendly.

Join the chat at https://gitter.im/jinzhu/gorm wercker status GoDoc

Overview

  • Full-Featured ORM (almost)
  • Associations (Has One, Has Many, Belongs To, Many To Many, Polymorphism)
  • Callbacks (Before/After Create/Save/Update/Delete/Find)
  • Preloading (eager loading)
  • Transactions
  • Composite Primary Key
  • SQL Builder
  • Auto Migrations
  • Logger
  • Extendable, write Plugins based on GORM callbacks
  • Every feature comes with tests
  • Developer Friendly

Getting Started

Upgrading To V1.0

Author

jinzhu

Contributors

https://github.com/jinzhu/gorm/graphs/contributors

License

Released under the MIT License.

Description
The fantastic ORM library for Golang, aims to be developer friendly
Readme
Languages
Go 99.9%
Shell 0.1%