Changeset 14795 in project


Ignore:
Timestamp:
05/26/09 18:12:02 (10 years ago)
Author:
sjamaan
Message:

Use low-level procedures where it makes sense in the examples (ie, (row-values ...) instead of (row-map identity ...))

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/postgresql

    r14794 r14795  
    9090<expr>
    9191(let ((conn (connect '((dbname . test)))))
    92   (row-map identity (query conn "SELECT $1::text, 2::int2" "hello")))
     92  (row-values (query conn "SELECT $1::text, 2::int2" "hello")))
    9393</expr>
    9494<result>
     
    480480(parameterize ((default-type-parsers `(("text" . ,string->symbol))))
    481481  (let ((conn (connect '((dbname . test)))))
    482     (row-map identity (query conn "SELECT 'hello'::text"))))
    483 </expr>
    484 <result>
    485 (hello)
     482    (symbol? (value-at (query conn "SELECT 'hello'::text")))))
     483</expr>
     484<result>
     485#t
    486486</result>
    487487</example>
Note: See TracChangeset for help on using the changeset viewer.