Mercurial > forge
comparison main/database/inst/pq_exec_params.m @ 11661:1b4e81051b66 octave-forge
Add converter for timestamp.
author | i7tiol |
---|---|
date | Sat, 27 Apr 2013 19:17:33 +0000 |
parents | 7c0dae992c31 |
children | abd563353849 |
comparison
equal
deleted
inserted
replaced
11660:cbff4e8a8af8 | 11661:1b4e81051b66 |
---|---|
124 ## @item money | 124 ## @item money |
125 ## @tab int64 scalar, which is 100 times the currency value to enable | 125 ## @tab int64 scalar, which is 100 times the currency value to enable |
126 ## storing the 'small currency' (e.g. Cent) fraction in the last two | 126 ## storing the 'small currency' (e.g. Cent) fraction in the last two |
127 ## digits | 127 ## digits |
128 ## @tab yes | 128 ## @tab yes |
129 ## @item timestamp | |
130 ## @tab 8-byte-time-value (see below), positive or negative time | |
131 ## interval from 2000-01-01 00:00. | |
132 ## @tab yes | |
129 ## @item any array | 133 ## @item any array |
130 ## @tab Structure with fields @code{data} (holding a cell-array with | 134 ## @tab Structure with fields @code{data} (holding a cell-array with |
131 ## entries of a type corresponding to the Postgresql element type), | 135 ## entries of a type corresponding to the Postgresql element type), |
132 ## @code{ndims} (holding the number of dimensions of the corresponding | 136 ## @code{ndims} (holding the number of dimensions of the corresponding |
133 ## Postgresql array, since this can not be deduced from the dimensions | 137 ## Postgresql array, since this can not be deduced from the dimensions |
148 ## @item any enum type | 152 ## @item any enum type |
149 ## @tab string | 153 ## @tab string |
150 ## @tab yes | 154 ## @tab yes |
151 ## @end multitable | 155 ## @end multitable |
152 ## | 156 ## |
157 ## 8-byte-time-value: int64 scalar, representing microseconds, if server | |
158 ## is configured for integer date/time; double scalar, representing | |
159 ## seconds, if server is configured for float date/time (deprecated). | |
160 ## There is no automatic conversion from an octave variable, an error is | |
161 ## thrown if the wrong of both types is supplied. One can use | |
162 ## @code{pq_conninfo} to query the respective server configuration. | |
163 ## | |
153 ## Octaves @code{NA} corresponds to a Postgresql NULL value (not | 164 ## Octaves @code{NA} corresponds to a Postgresql NULL value (not |
154 ## @code{NaN}, which is interpreted as a value of a float type!). | 165 ## @code{NaN}, which is interpreted as a value of a float type!). |
155 ## | 166 ## |
156 ## @seealso {pq_update_types} | 167 ## @seealso {pq_update_types, pq_conninfo} |
157 ## @end deftypefn | 168 ## @end deftypefn |
158 | 169 |
159 ## PKG_ADD: __all_db_opts__ ("pq_exec_params"); | 170 ## PKG_ADD: __all_db_opts__ ("pq_exec_params"); |
160 | 171 |
161 function ret = pq_exec_params (conn, varargin) | 172 function ret = pq_exec_params (conn, varargin) |