-
-;; create a view, list its attributes and drop it
-(deftest :fddl/view/2
- (progn (clsql:create-view [lenins-group]
- ;;not in sqlite
- ;;:column-list '([forename] [surname] [email])
- :as [select [first-name] [last-name] [email]
- :from [employee]
- :where [= [managerid] 1]])
- (prog1
- (sort (mapcar #'string-downcase
- (clsql:list-attributes [lenins-group]))
- #'string<)
- (clsql:drop-view [lenins-group] :if-does-not-exist :ignore)))
- ("email" "first_name" "last_name"))
-
-;; create a view, select stuff from it and drop it
+
+ ;; create a view, list its attributes and drop it
+(when (clsql-base-sys:db-type-has-views? *test-database-underlying-type*)
+ (deftest :fddl/view/2
+ (progn (clsql:create-view [lenins-group]
+ :as [select [first-name] [last-name] [email]
+ :from [employee]
+ :where [= [managerid] 1]])
+ (prog1
+ (sort (mapcar #'string-downcase
+ (clsql:list-attributes [lenins-group]))
+ #'string<)
+ (clsql:drop-view [lenins-group] :if-does-not-exist :ignore)))
+ ("email" "first_name" "last_name")))
+
+ ;; create a view, select stuff from it and drop it