Comments (3)
This is a limitation of the SQL library I'm using, but I might be able to fix it with a simple find and replace. Will investigate and get back to you.
from termdbms.
@kilroy42 no amount of find+replace can fix that I'm afraid. This might be dependent on the database I'm using (MySql support or Postgres might not care), but "transaction" is a reserved keyword, so quoted, unquoted, or backticks around it aren't the issue. Table names can't be reserved keywords like "transaction". Haven't tested it with fields, but I would just advise to use names that have some kind of prefix or suffix if you really want that reserved keyword nomenclature.
from termdbms.
Just checked your code. You really should use prepared statements, that is one of the reasons it doesn't work. And will avoid a whole lot of other errors, too!
I fixed it in viewer/viewer.go
line 278:
var statement strings.Builder
statement.WriteString("select * from `")
statement.WriteString(schemaName)
statement.WriteString("`")
(Sadly I don't know go, so excuse my code style)
from termdbms.
Related Issues (13)
- runtime error: integer divide by zero HOT 6
- Alpha 1.0 Release (Database Agnostic Spreadsheet Program) HOT 9
- Crash on DB with many columns? HOT 2
- Publish a Homebrew package HOT 3
- Build failes due to "imported and not used" error HOT 3
- Fails to build with 32-bit Go HOT 2
- Databases HOT 4
- No installation instructions + getting started HOT 2
- Fails to view SQLite databases containing STRICT tables HOT 1
- Update readme to inform users how to switch between modes HOT 2
- Large (multi-gb) sqlite db support HOT 2
- libsql support (turso)
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 termdbms.