new DB behaviour

Jan Schneider janmailing@gmx.de
Sun, 15 Jul 2001 10:59:28 +0000


---------------------- multipart/mixed attachment
Hi,

I took me hours to find out why my imp didn't work anymore. I almost blamed 
Anil because it happened after his big mime commit. ;-)

But actually I also installed an updated pear repository and this was the one 
that broke my installation.
The behaviour of quoteString changed in that it now provides enclosing single 
quotes. I don't know if this one applies to the whole DB class or only to the 
mysql drivers.

Attached is a diff that make imp work again, but I don't know how to handle 
different version of pear.

Perhaps someone may take a look at it.

Jan.

:::::::::::::::::::::::::::::::::::::::: 
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::
---------------------- multipart/mixed attachment
SW5kZXg6IFByZWZzL3NxbC5waHAKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09P
T09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL2N2cy9ob3JkZS
9ob3JkZS9saWIvUHJlZnMvc3FsLnBocCx2CnJldHJpZXZpbmcgcmV2aXNpb24gMS4xOApkaWZ
mIC11IC1yMS4xOCBzcWwucGhwCi0tLSBQcmVmcy9zcWwucGhwCTIwMDEvMDYvMTIgMTU6MDc6
MDgJMS4xOAorKysgUHJlZnMvc3FsLnBocAkyMDAxLzA3LzE1IDEwOjU2OjE5CkBAIC0xNDQsO
SArMTQ0LDkgQEAKICAgICAgICAgLyogQnVpbGQgdGhlIFNRTCBxdWVyeS4gKi8KICAgICAgIC
AgJHF1ZXJ5ID0gJ3NlbGVjdCBzY29wZSwgcHJlZl9uYW1lLCBwcmVmX3ZhbHVlIGZyb20gJzs
KICAgICAgICAgJHF1ZXJ5IC49ICR0aGlzLT5wYXJhbXNbJ3RhYmxlJ10gLiAnICc7IAotICAg
ICAgICAkcXVlcnkgLj0gIndoZXJlIHVpZCA9ICciIC4gJHRoaXMtPmRiLT5x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YW1lID0gJyIgLiAkdGhpcy0+ZGItPnF1b3RlU3RyaW5
nKCRuYW1lKSAuICInIjsKLSAgICAgICAgICAgICAgICAkcXVlcnkgLj0gIiBhbmQgc2NvcGUg
PSAnIiAuICR0aGlzLT5kYi0+cXVvdGVTdHJpbmcoJHNjb3BlKSAuICInIjsKKyAgICAgICAgI
CAgICAgICAkcXVlcnkgLj0gInNldCBwcmVmX3ZhbHVlID0gIiAuICR0aGlzLT5kYi0+cXVvdG
VTdHJpbmcoJHRoaXMtPmdldFZhbHVlKCRuYW1lKSk7CisgICAgICAgICAgICAgICAgJHF1ZXJ
5IC49ICIgd2hlcmUgdWlkID0gIiAuICR0aGlzLT5kYi0+cXVvdGVTdHJpbmcoJHRoaXMtPnVz
ZXIpOworICAgICAgICAgICAgICAgICRxdWVyeSAuPSAiIGFuZCBwcmVmX25hbWUgPSAiIC4gJ
HRoaXMtPmRiLT5xdW90ZVN0cmluZygkbmFtZSk7CisgICAgICAgICAgICAgICAgJHF1ZXJ5IC
49ICIgYW5kIHNjb3BlID0gIiAuICR0aGlzLT5kYi0+cXVvdGVTdHJpbmcoJHNjb3BlKTsKICA
gICAgICAgICAgICAgICAkcmVzdWx0ID0gJHRoaXMtPmRiLT5xdWVyeSgkcXVlcnkpOwogICAg
ICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgIC8qIFJldHVybiBhbiBlcnJvciBpZiB0a
GUgdXBkYXRlIGZhaWxzLCB0b28uICovCg==


---------------------- multipart/mixed attachment--