Comments (1)
QtSql converts all binded values to text before sending which is why that option exists in the first place, you can send your numeric as text QString and do the cast server side like:
$1::numeric(2,50)
When retrieving the number using AColumn::toString() will just extract the data as text, and maybe you need to also cast it server side like:
123.435454545454545::text
from asql.
Related Issues (20)
- Suspicious ")", "tabsle" and more HOT 1
- Executable names with Qt5 and Qt6 HOT 1
- Compilation error HOT 6
- Is there any plan to support MySQL driver? HOT 1
- Question: Is database username and password easy to grab? HOT 1
- Including ASql libs in Cutelyst app HOT 5
- Table name as query parameter? HOT 2
- How to prepare value for column of integer[] type HOT 4
- query with integer[] array HOT 4
- Using ASql with sync mode? HOT 1
- Feature Request: ad field like QSqlQuery ASql::AResult::lastExecutedQuery HOT 3
- Please update deb package HOT 1
- db.exec on a disconnected database HOT 2
- Feature Request: more detailed info for multiqueries HOT 4
- prepared statement in ORDER BY not working HOT 3
- Has Asql any public function to validate query parameters outside of db.exec? HOT 1
- coroutine support (qcoro) HOT 1
- general question HOT 1
- HELP needed: transaction when calling many functions with queries HOT 2
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 asql.