database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
ㆍPostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
PostgreSQL Q&A 4520 게시물 읽기
No. 4520
PHP 4.3에서 PostgreSQL 관련 함수이름이 바뀌었네요..
작성자
이승철
작성일
2003-01-10 09:45
조회수
1,260

이번에 새로운 서버로 옮기면서 최신버전으로 설치를 하면서 보니 ..

PostgreSQL관련 함수이름이 많이 바뀌었더군요.

주로 많이 쓰는 함수가 pg_exec, pg_numrows,pg_numfields였는데..

이름이 바뀌어서 바꾸느라 고생좀 했습니다.... ^^;

저만 모르고 있었나요? ^^;

 

PostgreSQL function names will be changed in 4.2.0 release to confirm to current coding standards. Most of new names will have additional underscores, e.g. pg_lo_open(). Some functions are renamed to different name for consistency. e.g. pg_exec() to pg_query(). Older names can be used in 4.2.0 and a few releases from 4.2.0, but they may be deleted in the future.

Table 2. Function names changed
Old name           New name
pg_exec()          pg_query()
pg_getlastoid()    pg_last_oid()
pg_cmdtuples()     pg_affected_rows()
pg_numrows()       pg_num_rows()
pg_numfields()     pg_num_fields()
pg_fieldname()     pg_field_name()
pg_fieldsize()     pg_field_size()
pg_fieldnum()      pg_field_num()
pg_fieldprtlen()   pg_field_prtlen()
pg_fieldisnull()   pg_field_is_null()
pg_freeresult()    pg_free_result()
pg_result()        pg_fetch_result()
pg_loreadall()     pg_lo_read_all()
pg_locreate()      pg_lo_create()
pg_lounlink()      pg_lo_unlink()
pg_loopen()        pg_lo_open()
pg_loclose()       pg_lo_close()
pg_loread()        pg_lo_read()
pg_lowrite()       pg_lo_write()
pg_loimport()      pg_lo_import()
pg_loexport()      pg_lo_export()

The old pg_connect()/pg_pconnect() syntax will be deprecated to support asynchronous connections in the future. Please use a connection string for pg_connect() and pg_pconnect().

[Top]
No.
제목
작성자
작성일
조회
4525포스트그레스에서의 B+tree [1]
노상식
2003-01-14
879
4523포스트그레스 최적화 튜닝관련 질문 -_-;; [5]
박래정
2003-01-13
2079
4522DBA: NUMBER OF INDEX TUPLES (1553) IS NOT THE SAME AS HEAP 오류 처리 방법
김상기
2003-01-13
886
4520PHP 4.3에서 PostgreSQL 관련 함수이름이 바뀌었네요..
이승철
2003-01-10
1260
4519update구문..... [5]
이현선
2003-01-09
76445
4518[PostgreSQL]Exception처리 [3]
이은희
2003-01-08
1040
4517xlog, clog 삭제에 따른 사고 복구 방법
김상기
2003-01-08
1103
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.016초, 이곳 서비스는
	PostgreSQL v16.4로 자료를 관리합니다