Postgresql 中文操作指南
36.11. Library Functions #
libecpg 库主要包含“隐藏”函数,用于实现嵌入式 SQL 命令所表达的功能。但有一些函数可以直接调用。请注意这会让你的代码不可移植。
The libecpg library primarily contains “hidden” functions that are used to implement the functionality expressed by the embedded SQL commands. But there are some functions that can usefully be called directly. Note that this makes your code unportable.
Note
在 Windows 上,如果 ecpg 库和应用程序使用不同的标志进行编译,那么这个函数调用将会导致应用程序崩溃,因为 FILE 指针的内部表示形式不同。具体来说,多线程/单线程、发布/调试和静态/动态标志对于使用该库的库和应用程序都应该相同。
On Windows, if the ecpg libraries and an application are compiled with different flags, this function call will crash the application because the internal representation of the FILE pointers differ. Specifically, multithreaded/single-threaded, release/debug, and static/dynamic flags should be the same for the library and all applications using that library.