Comments (7)
Cannot reproduce it.
It may depend on the data in "crm_users" table or the difference of character encodings between MySQL and SBCL.
from cl-dbi.
How should I set the character encodings between MYSQL and SBCL? I also tried
"set names utf8" query from SBCL. Did not help.
from cl-dbi.
Are all data in "crm_users" UTF-8 or ASCII strings?
from cl-dbi.
Hi Eitaro,
The data I have inserted is in ASCII strings.
thanks
Pawan.
On Thu, Jan 7, 2016 at 11:06 PM, Eitaro Fukamachi [email protected]
wrote:
Are all data in "crm_users" UTF-8 or ASCII strings?
—
Reply to this email directly or view it on GitHub
#25 (comment).
from cl-dbi.
I have queried the Mysql database for collation and here are the results.
mysql> show variables like 'collation%';
+----------------------+-----------------+
| Variable_name | Value |
+----------------------+-----------------+
| collation_connection | utf8_general_ci |
| collation_database | utf8_general_ci |
| collation_server | utf8_general_ci |
+----------------------+-----------------+
3 rows in set (0.00 sec)
I also ran the query "set names utf8". After that I ran the following query
mysql> show variables like 'character_set%';
+--------------------------+----------------------------------------------------
-----+
| Variable_name | Value
|
+--------------------------+----------------------------------------------------
-----+
| character_set_client | utf8
|
| character_set_connection | utf8
|
| character_set_database | utf8
|
| character_set_filesystem | binary
|
| character_set_results | utf8
|
| character_set_server | utf8
|
| character_set_system | utf8
|
| character_sets_dir | C:\Program Files\MySQL\MySQL Server 5.6\share\chars
ets\ |
+--------------------------+----------------------------------------------------
-----+
8 rows in set (0.00 sec)
Still I am getting the same results.
from cl-dbi.
I have the same issue here. Windows 10 x64, SBCL 1.3.9 x64, MySQL Connector C x64 6.1.6.
I needed the "SET names 'utf8';" command at first to access varchar field correctly.
Then, running a SELECT with a single column worked. Next I wanted to query simple integer columns:
(cl-mysql::query "SELECT bug_id FROM bugs WHERE bug_id = 182222")
=> ((((182222)) (("bug_id" :INT24 49667))))
(cl-mysql::query "SELECT assigned_to FROM bugs WHERE bug_id = 182222")
=> ((((2507)) (("assigned_to" :INT24 52257))))
Combining both columns into a single query:
(cl-mysql::query "SELECT bug_id, assigned_to FROM bugs WHERE bug_id = 182222")
=> EXCEPTION_ACCESS_VIOLATION
Both fields are of type "mediumint(9)" in the database. Perhaps this helps, because I think it's not just a question of different encodings between CL and the database.
from cl-dbi.
I tried the same with CCL 1.11 x86 (32-bit). This combination works.
Looks like it's a 64-bit issue, while 32-bit (ccl, mysql-connector-c) on Windows 10 x64 works.
from cl-dbi.
Related Issues (20)
- Non thread safe connect-cached
- cl-dbi:commit should make a non-local exit HOT 9
- typo in Usage: Connecting and executing a query HOT 1
- @export annotations cause sbcl package variance warnings HOT 1
- sqlite3 transaction behavior changed
- Preparing statement with lists HOT 2
- Please Consider Converting `prepare-sql` from Variadic to take in a list HOT 2
- Range of elements HOT 1
- f2cfb60: 'Converts Calls With Parameters to `&optional` instead of `&rest`' broke my code HOT 1
- dbi table exists function?
- Functions connect-cached and get-connection-pool are not thread-safe HOT 4
- The id of the new record with PostgreSQL, how?
- Preparing statement HOT 2
- Make ":binds" of "retrieve-by-sql" into an optional param HOT 2
- unexpected behaviour in insert-into
- MySQL memory leak HOT 2
- MySQL unable to load Foreign library HOT 3
- Begin/ End transaction - fails on the commit HOT 4
- Enable customization of 'row-reader in cl-dbi as it is in cl-postgres HOT 1
- SSL Error when connecting to MySQL database
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 cl-dbi.