sounds really nice..
would it be possible to accept objects as well as arrays?
how does it know if the update column should be an integer or string - 
eg. '12' or 12 ? - is that what the meta data is for?
regards
alan

Markus Fischer wrote:

>    Can you elaborate more on the mystic 'metadata' and what it
>    reallt means to the functions?
>
>On Wed, Apr 10, 2002 at 04:43:21PM +0900, Yasuo Ohgaki wrote : 
>
>>Hi to all database module maintainers,
>>
>>I've committed some new PostgreSQL functions and
>>manual pages for these.
>>
>>pg_metadata() - get medata data
>>pg_convert() - check and convert array accoding to metadata
>>pg_insert()/update()/select()/delete() - does insert, etc by
>>array.
>>
>>With the new function, users can do safely.
>>
>><?php
>>
>>$db = pg_connect();
>>pg_insert($db, 'get_value_log', $_GET) or user_sent_malformed_data();
>>
>>?>
>>
>>Since, pg_insert() lookup metadata and convert array values
>>safely used in SQL.
>>
>>Please take a look at API, since you or other person may
>>implement same feature for your database in the future.
>>And API should be consistent whenever it's possible.
>>
>>I can change API if it's before PHP 4.3.0.
>>Thank you.
>>
>>--
>>Yasuo Ohgaki
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>-- 
>>PHP Development Mailing List <http://www.php.net/>
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>




-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to