acs::db::nsdb-postgresql method call person new (public)
<instance of acs::db::nsdb-postgresql> call person new \ [ -dbn dbn ] [ -person_id person_id ] [ -object_type object_type ] \ [ -creation_date creation_date ] [ -creation_user creation_user ] \ [ -creation_ip creation_ip ] -email email [ -url url ] \ -first_names first_names -last_name last_name \ [ -context_id context_id ]
Defined in packages/acs-tcl/tcl/00-acs-tcl-init.tcl
Automatically generated method TYPES: integer {character varying} {timestamp with time zone} integer {character varying} {character varying} {character varying} {character varying} {character varying} integer
- Switches:
- -dbn (optional)
- -person_id (optional, accept empty)
- -object_type (optional, defaults to
"person"
)- -creation_date (optional, defaults to
"now()"
)- -creation_user (optional, accept empty)
- -creation_ip (optional, accept empty)
- -email (required)
- -url (optional, accept empty)
- -first_names (required)
- -last_name (required)
- -context_id (optional, accept empty)
- Testcases:
- No testcase defined.
Source code: db_with_handle -dbn $dbn __DB { set s [ns_pg_bind 0or1row $__DB {select person__new(CAST(:person_id AS integer),:object_type,:creation_date,CAST(:creation_user AS integer),:creation_ip,:email,:url,:first_names,:last_name,CAST(:context_id AS integer))}] return [ns_set value $s 0] }XQL Not present: Generic, PostgreSQL, Oracle