Comments (1)
Matt Biilmann [8:09 PM]
ahh, the query here is broken:
query = query.
Joins("LEFT JOIN " + orderTable + " as orders ON " + userTable + ".id = " + orderTable + ".user_id").
Group(userTable + ".id")
it becomes something like
test_orders as orders ON test_users.id test_orders.user_id
test_orders as orders ON test_users.id orders.user_id
because of theas
it works if thereโs no table prefix
because then the start ends up beingorders as orders
https://github.com/netlify/gocommerce/blob/master/api/user.go#L93
from gocommerce.
Related Issues (20)
- TBD and remaining issues HOT 2
- Install TLS certificate in GoCommerce instance HOT 3
- Database error on reports/products HOT 1
- Automate migration
- Indexes in postgresql are not namespaced HOT 1
- Make payment providers optional HOT 1
- No downloads returned. HOT 2
- Support Strong Customer Authentication using stripe HOT 3
- Rip out netlify-commons HOT 1
- transactions list endpoint fails with SQL error
- Invalid http body on /claim endpoint
- Placing an order with multiple digital products allows to download only files for the first added
- Fix invalid paypal transaction updates
- Fix intermittently failing test: TestOrderCreate/MultipleItemsWithDownloads
- How can I use it ? HOT 3
- not working on heroku it show something error in code HOT 2
- [security] Enforce Branch Protections
- BUG - Error douring deploy on Heroku by button
- Different pricing based on user role
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gocommerce.