;;; -*- Mode: Lisp -*-
-;;; $Id: alien-resources.cl,v 1.1 2002/05/13 03:52:24 kevin Exp $
+;;; $Id: alien-resources.cl,v 1.2 2002/05/13 03:57:09 kevin Exp $
-;;; MaiSQL --- Common Lisp Interface Layer to SQL Databases
;;; This is copyrighted software. See documentation for terms.
;;;
;;; oracle-sql.lisp --- SQL-Interface implementation for Oracle
;;;
;;; derived from postgresql.lisp
-(in-package :MAISQL-ORACLE)
+(in-package :clsql-oracle)
(declaim (optimize (speed 3)
(debug 1)))
;;; -*- Mode: Lisp -*-
;;;; This is copyrighted software. See documentation for terms.
;;;;
-;;;; $Id: clsql-oracle.system,v 1.1 2002/05/13 03:52:24 kevin Exp $
+;;;; $Id: clsql-oracle.system,v 1.2 2002/05/13 03:58:01 kevin Exp $
(in-package :cl-user)
(:file "oracle-objects"
:depends-on ("oracle-sql"))
)
- :depends-on (:uncommonsql)
+ :depends-on (:clsql-base)
)
;;; -*- Mode: Lisp -*-
-;;; $Id: oracle-constants.cl,v 1.1 2002/05/13 03:52:24 kevin Exp $
+;;; $Id: oracle-constants.cl,v 1.2 2002/05/13 03:57:09 kevin Exp $
-(in-package :MAISQL-ORACLE)
+(in-package :clsql-oracle)
(defconstant +oci-default+ #x00) ; default value for parameters and attributes
(defconstant +oci-threaded+ #x01) ; application is in threaded environment
;;; -*- Mode: Lisp -*-
-;;; $Id: oracle-loader.cl,v 1.1 2002/05/13 03:52:24 kevin Exp $
+;;; $Id: oracle-loader.cl,v 1.2 2002/05/13 03:57:09 kevin Exp $
;;;
;;; MaiSQL --- Common Lisp Interface Layer to SQL Databases
;;; This is copyrighted software. See documentation for terms.
;;;
;;; oracle-loader.cl --- Foreign Object Loader for Oracle
-(in-package :MAISQL-ORACLE)
+(in-package :clsql-oracle)
;; Load the foreign library
-(in-package :maisql-oracle)
+(in-package :clsql-oracle)
(defparameter *oracle-default-varchar2-length* "512")
;;; LOCAL-TIME stuff that needs to go into hooks
#+local-time
-(defmethod maisql-sys::database-get-type-specifier
+(defmethod clsql-sys::database-get-type-specifier
((type (eql 'local-time::local-time)) args (database oracle-database))
(declare (ignore args))
"DATE")
#+local-time
-(defmethod maisql-sys::database-get-type-specifier
+(defmethod clsql-sys::database-get-type-specifier
((type (eql 'local-time::duration))
args
(database oracle-database))
;;; -*- Mode: Lisp -*-
-;;; $Id: oracle-package.cl,v 1.1 2002/05/13 03:52:24 kevin Exp $
+;;; $Id: oracle-package.cl,v 1.2 2002/05/13 03:57:09 kevin Exp $
;;;
-;;; MaiSQL --- Common Lisp Interface Layer to SQL Databases
;;; This is copyrighted software. See documentation for terms.
-;;;
-;;; oracle-package.lisp --- Package definition for the Oracle interface
-;;;
(in-package :cl-user)
-(defpackage "MAISQL-ORACLE"
- (:nicknames "ORACLE")
- (:use "COMMON-LISP" "MAISQL-SYS" "ALIEN" "C-CALL" "SYSTEM")
- (:export "ORACLE-DATABASE"
- "*ORACLE-SO-LOAD-PATH*"
- "*ORACLE-SO-LIBRARIES*")
- (:documentation "This is the MaiSQL interface to Oracle."))
+(defpackage :clsql-oracle
+ (:nicknames :oracle)
+ (:use :common-lisp :clsql-sys "ALIEN" "C-CALL" "SYSTEM")
+ (:export #:oracle-database
+ #:*oracle-so-load-path*
+ #:*oracle-so-libraries*)
+ (:documentation "This is the CLSQL interface to Oracle."))
;;; -*- Mode: Lisp -*-
-;;; $Id: oracle-sql.cl,v 1.1 2002/05/13 03:52:24 kevin Exp $
+;;; $Id: oracle-sql.cl,v 1.2 2002/05/13 03:57:09 kevin Exp $
;;; MaiSQL --- Common Lisp Interface Layer to SQL Databases
;;; This is copyrighted software. See documentation for terms.
;;;
;;; derived from postgresql.lisp
-(in-package :MAISQL-ORACLE)
+(in-package :clsql-oracle)
(defmethod database-initialize-database-type
((database-type (eql :oracle)))
(oci-error-get (deref errhp) 1 "" (c-& errcode 0) (c-& errbuf 0) +errbuf-len+ +oci-htype-error+)
(let ((subcode (deref errcode 0)))
(unless (and nulls-ok (= subcode +null-value-returned+))
- (error 'maisql-sql-error
+ (error 'clsql-sql-error
:database database
:errno subcode
:error (cast (c-& errbuf 0) c-string)))))))
(nulls-ok
- (error 'maisql-sql-error
+ (error 'clsql-sql-error
:database database
:error "can't handle NULLS-OK without ERRHP"))
(t
- (error 'maisql-sql-error
+ (error 'clsql-sql-error
:database database
:error "OCI Error (and no ERRHP available to find subcode)"))))
;;; -*- Mode: Lisp -*-
-;;; $Id: oracle.cl,v 1.1 2002/05/13 03:52:24 kevin Exp $
+;;; $Id: oracle.cl,v 1.2 2002/05/13 03:57:09 kevin Exp $
;;; MaiSQL --- Common Lisp Interface Layer to SQL Databases
;;; This is copyrighted software. See documentation for terms.
;;; The present content of this file is orented specifically towards
;;; Oracle 8.0.5.1 under Linux, linking against libclntsh.so
-(in-package :MAISQL-ORACLE)
+(in-package :clsql-oracle)
;;