Comments (3)
Thanks for the report @grahamhoyes
Feel free to submit a PR with any desired changes to achieve compatibility with your target.
from homer-app.
Your report is appreciated. Please star this repository to motivate its developers! ⭐
from homer-app.
Some details on a possible fix, I am not familiar with go or gorm so there may be inaccuracies:
- I've only seen parameter binding with
?
,%s
,:name
, etc work for values, not identifiers. That seems to be backed up by this stackoverflow post. So binding with?
could (and probably should) be used for the password when creating the user, but not elsewhere - The issue
https://github.com/golang/go/issues/18478
(intentionally not linked to avoid a spammy backlink) has been open for many years on providing escaping indatabase/sql
, which I believe gorm is built on. Seems unlikely that will go anywhere. - The postgres docs on syntax are here. The important part, which is what the above examples from pg8000 do:
Quoted identifiers can contain any character, except the character with code zero. (To include a double quote, write two double quotes.)
github.com/lib/pq
has aQuoteIdentifier
function here. That's probably exactly what we want. It doesn't cover the\0
-containing edge case, but should be good enough.
from homer-app.
Related Issues (20)
- Postgres SSL HOT 4
- Homer UI - API Request of export "Share Link" HOT 2
- Redirect/force https access HOT 2
- Homer UI - Pop-Up window issues HOT 10
- Homer UI - Alias HOT 2
- Remove sip header via lua or other means? HOT 1
- Bug in UI - SIP Call Search HOT 7
- Docker ENVs for API Token settings HOT 1
- URL searching for correlation_id HOT 12
- 3 Legs/call-ids Correlation Mapping HOT 3
- Webapp Server not starting. HOT 3
- Keeping the widget in the result page HOT 6
- Server Cannot be started HOT 6
- Database logs can't be switched off HOT 8
- Authentication to Grafana in widget HOT 7
- How To search and visualize LOGs from PGSQL (missing HEP Logs subtab)? HOT 17
- Homer-App duplicate LOG messages in Ladder Diagram HOT 2
- Flow Default View - heading character limit
- Make character limit configurable in Flow tab. HOT 1
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 homer-app.