X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=db-sqlite%2Fsqlite-sql.lisp;h=a2bc7cdfcac4cf09ef51285671cc790a0817da4f;hp=e0c7464628ea7d0e8f51a6f3de0e611f54a1fd52;hb=c7cbd01b259a1846a5e172d69c956b836b14febb;hpb=e567409d9fff3f7231c2a0bb69b345e19de2b246 diff --git a/db-sqlite/sqlite-sql.lisp b/db-sqlite/sqlite-sql.lisp index e0c7464..a2bc7cd 100644 --- a/db-sqlite/sqlite-sql.lisp +++ b/db-sqlite/sqlite-sql.lisp @@ -7,10 +7,8 @@ ;;;; Authors: Aurelio Bignoli, Kevin Rosenberg, Marcus Pearce ;;;; Created: Aug 2003 ;;;; -;;;; $Id$ -;;;; ;;;; This file, part of CLSQL, is Copyright (c) 2003 by Aurelio Bignoli and -;;;; Copyright (c) 2003-2004 by Kevin Rosenberg and Marcus Pearce. +;;;; Copyright (c) 2003-2010 by Kevin Rosenberg and Marcus Pearce. ;;;; ;;;; CLSQL users are granted the rights to distribute and use this software ;;;; as governed by the terms of the Lisp Lesser GNU Public License @@ -99,7 +97,7 @@ (when (> n-col 0) (when field-names (setf col-names (loop for i from 0 below n-col - collect (sqlite:sqlite-aref sqlite-col-names i)))) + collect (sqlite:sqlite-aref sqlite-col-names i (encoding database))))) (let ((canonicalized-result-types (canonicalize-result-types result-types n-col sqlite-col-names))) (flet ((extract-row-data (row) @@ -107,7 +105,8 @@ (loop for i from 0 below n-col collect (clsql-uffi:convert-raw-field (sqlite:sqlite-raw-aref row i) - canonicalized-result-types i)))) + (nth i canonicalized-result-types) + :encoding (encoding database))))) (push (extract-row-data new-row) rows) ;; Read subsequent rows. @@ -226,8 +225,8 @@ do (setf (car rest) (clsql-uffi:convert-raw-field (sqlite:sqlite-raw-aref row i) - result-types - i))) + (nth i result-types) + :encoding (encoding database)))) (sqlite:sqlite-free-row row) t))))