2013-01-23 25 views
0

當使用DBD::mysql作爲Perl5數據庫接口(DBI)驅動程序的任何含義時,是否具有屬性LongReadLenLongTruncOk?我在DBD::mysql文檔中未找到這些屬性,但我在因特網上找到了一些使用DBD::mysql這些屬性的示例。DBD :: MySQL:LongReadLen和LongTruncOk

+1

我已經使用了從MySQL數據庫讀大blob中的attribs,它對我來說工作得很好 –

回答

1

如果你搜索dbdimp.c我發現:

* 
* Name: dbd_st_blob_read 
* 
* Purpose: Used for blob reads if the statement handles "LongTruncOk" 
*   attribute (currently not supported by DBD::mysql) 

我找不到任何參考longreadlen。請注意,我自己不使用DBD :: mysql,這只是代碼中的快速搜索。

2

這是一個適用於所有句柄的DBI attribute。其記錄在DBI庫中。 AFAIK它適用於DBD :: mysql和每個DBI驅動程序。