Artifact
f30f248cce8c3e1f469725661c14ca2902cf487afe10a6d5fab3275304ee0c33 :
Ticket change
[f30f248cce]
- New ticket
[eab08a87eddde94b|eab08a87ed] <i>A Connection with options can't be duplicated.</i>.
by
anonymous
2018-05-23 14:44:59.
0000: 44 20 32 30 31 38 2d 30 35 2d 32 33 54 31 34 3a D 2018-05-23T14:
0010: 34 34 3a 35 39 2e 37 34 32 0a 4a 20 66 6f 75 6e 44:59.742.J foun
0020: 64 69 6e 20 33 2e 32 2e 32 2b 70 72 69 73 74 69 din 3.2.2+pristi
0030: 6e 65 2d 32 75 62 75 6e 74 75 33 0a 4a 20 69 63 ne-2ubuntu3.J ic
0040: 6f 6d 6d 65 6e 74 20 49 66 5c 73 79 6f 75 5c 73 omment If\syou\s
0050: 63 61 6c 6c 5c 73 43 6f 6e 6e 65 63 74 69 6f 6e call\sConnection
0060: 3a 3a 73 65 74 5f 6f 70 74 69 6f 6e 28 4f 70 74 ::set_option(Opt
0070: 69 6f 6e 2a 29 2c 5c 73 74 68 65 6e 5c 73 43 6f ion*),\sthen\sCo
0080: 6e 6e 65 63 74 69 6f 6e 3a 3a 63 6f 6e 6e 65 63 nnection::connec
0090: 74 28 29 2c 5c 73 74 68 65 6e 5c 73 63 6f 70 79 t(),\sthen\scopy
00a0: 5c 73 74 68 65 5c 73 43 6f 6e 6e 65 63 74 69 6f \sthe\sConnectio
00b0: 6e 2c 5c 72 5c 6e 74 68 65 5c 73 63 6f 70 79 5c n,\r\nthe\scopy\
00c0: 73 63 6f 6e 73 74 72 75 63 74 6f 72 5c 73 66 6f sconstructor\sfo
00d0: 72 5c 73 74 68 65 5c 73 6e 65 77 5c 73 43 6f 6e r\sthe\snew\sCon
00e0: 6e 65 63 74 69 6f 6e 5c 73 6f 62 6a 65 63 74 5c nection\sobject\
00f0: 73 77 69 6c 6c 5c 73 74 72 79 5c 73 74 6f 5c 73 swill\stry\sto\s
0100: 63 6f 6e 6e 65 63 74 2e 5c 72 5c 6e 48 6f 77 65 connect.\r\nHowe
0110: 76 65 72 2c 5c 73 74 68 65 5c 73 63 6f 6e 6e 65 ver,\sthe\sconne
0120: 63 74 69 6f 6e 5c 73 61 74 74 65 6d 70 74 5c 73 ction\sattempt\s
0130: 77 69 6c 6c 5c 73 6c 69 6b 65 6c 79 5c 73 66 61 will\slikely\sfa
0140: 69 6c 2e 5c 72 5c 6e 5c 72 5c 6e 43 6f 6e 6e 65 il.\r\n\r\nConne
0150: 63 74 69 6f 6e 27 73 5c 73 63 6f 70 79 5c 73 63 ction's\scopy\sc
0160: 6f 6e 73 74 72 75 63 74 6f 72 5c 73 63 61 6c 6c onstructor\scall
0170: 73 5c 73 44 42 44 72 69 76 65 72 27 73 5c 73 63 s\sDBDriver's\sc
0180: 6f 70 79 5c 73 63 6f 6e 73 74 72 75 63 74 6f 72 opy\sconstructor
0190: 2c 5c 73 77 68 69 63 68 5c 73 63 61 6c 6c 73 5c ,\swhich\scalls\
01a0: 73 44 42 44 72 69 76 65 72 3a 3a 63 6f 70 79 28 sDBDriver::copy(
01b0: 29 2e 5c 72 5c 6e 5c 72 5c 6e 44 42 44 72 69 76 ).\r\n\r\nDBDriv
01c0: 65 72 3a 3a 63 6f 70 79 28 29 5c 73 63 61 6c 6c er::copy()\scall
01d0: 73 5c 73 44 42 44 72 69 76 65 72 3a 3a 63 6f 6e s\sDBDriver::con
01e0: 6e 65 63 74 28 4d 59 53 51 4c 26 29 2c 5c 73 77 nect(MYSQL&),\sw
01f0: 68 69 63 68 5c 73 63 61 6c 6c 73 5c 73 44 42 44 hich\scalls\sDBD
0200: 72 69 76 65 72 3a 3a 63 6f 6e 6e 65 63 74 5f 70 river::connect_p
0210: 72 65 70 61 72 65 28 29 2e 5c 72 5c 6e 5c 72 5c repare().\r\n\r\
0220: 6e 44 42 44 72 69 76 65 72 3a 3a 63 6f 6e 6e 65 nDBDriver::conne
0230: 63 74 5f 70 72 65 70 61 72 65 28 29 5c 73 74 72 ct_prepare()\str
0240: 69 65 73 5c 73 74 6f 5c 73 61 70 70 6c 79 5c 73 ies\sto\sapply\s
0250: 61 6e 79 5c 73 70 65 6e 64 69 6e 67 5c 73 6f 70 any\spending\sop
0260: 74 69 6f 6e 73 2e 5c 73 5c 72 5c 6e 48 6f 77 65 tions.\s\r\nHowe
0270: 76 65 72 2c 5c 73 69 66 5c 73 74 68 65 5c 73 6f ver,\sif\sthe\so
0280: 72 69 67 69 6e 61 6c 5c 73 43 6f 6e 6e 65 63 74 riginal\sConnect
0290: 69 6f 6e 5c 73 68 61 73 5c 73 61 6c 72 65 61 64 ion\shas\salread
02a0: 79 5c 73 63 6f 6e 6e 65 63 74 65 64 2c 5c 73 5c y\sconnected,\s\
02b0: 72 5c 6e 69 74 5c 73 64 69 73 63 61 72 64 65 64 r\nit\sdiscarded
02c0: 5c 73 74 68 65 5c 73 70 65 6e 64 69 6e 67 5c 73 \sthe\spending\s
02d0: 6f 70 74 69 6f 6e 73 5c 73 69 6e 5c 73 69 74 73 options\sin\sits
02e0: 5c 73 44 42 44 72 69 76 65 72 2c 5c 73 5c 72 5c \sDBDriver,\s\r\
02f0: 6e 73 6f 5c 73 74 68 65 5c 73 6e 65 77 5c 73 43 nso\sthe\snew\sC
0300: 6f 6e 6e 65 63 74 69 6f 6e 27 73 5c 73 44 42 44 onnection's\sDBD
0310: 72 69 76 65 72 5c 73 77 69 6c 6c 5c 73 6e 6f 74 river\swill\snot
0320: 5c 73 68 61 76 65 5c 73 61 6e 79 5c 73 6f 70 74 \shave\sany\sopt
0330: 69 6f 6e 73 5c 73 61 70 70 6c 69 65 64 2e 5c 73 ions\sapplied.\s
0340: 5c 72 5c 6e 54 68 69 73 5c 73 6d 61 6b 65 73 5c \r\nThis\smakes\
0350: 73 69 74 5c 73 76 65 72 79 5c 73 6c 69 6b 65 6c sit\svery\slikel
0360: 79 5c 73 74 68 61 74 5c 73 74 68 65 5c 73 6e 65 y\sthat\sthe\sne
0370: 77 5c 73 6f 62 6a 65 63 74 27 73 5c 73 63 6f 6e w\sobject's\scon
0380: 6e 65 63 74 28 29 5c 73 77 69 6c 6c 5c 73 66 61 nect()\swill\sfa
0390: 69 6c 2e 0a 4a 20 6c 6f 67 69 6e 20 61 6e 6f 6e il..J login anon
03a0: 79 6d 6f 75 73 0a 4a 20 6d 69 6d 65 74 79 70 65 ymous.J mimetype
03b0: 20 74 65 78 74 2f 78 2d 66 6f 73 73 69 6c 2d 70 text/x-fossil-p
03c0: 6c 61 69 6e 0a 4a 20 70 72 69 76 61 74 65 5f 63 lain.J private_c
03d0: 6f 6e 74 61 63 74 20 33 35 62 31 66 61 62 61 32 ontact 35b1faba2
03e0: 31 66 65 62 31 31 61 37 63 34 66 30 32 64 36 36 1feb11a7c4f02d66
03f0: 66 62 66 32 38 30 63 32 66 62 66 61 39 31 65 0a fbf280c2fbfa91e.
0400: 4a 20 73 65 76 65 72 69 74 79 20 49 6d 70 6f 72 J severity Impor
0410: 74 61 6e 74 0a 4a 20 73 74 61 74 75 73 20 4f 70 tant.J status Op
0420: 65 6e 0a 4a 20 74 69 74 6c 65 20 41 5c 73 43 6f en.J title A\sCo
0430: 6e 6e 65 63 74 69 6f 6e 5c 73 77 69 74 68 5c 73 nnection\swith\s
0440: 6f 70 74 69 6f 6e 73 5c 73 63 61 6e 27 74 5c 73 options\scan't\s
0450: 62 65 5c 73 64 75 70 6c 69 63 61 74 65 64 2e 0a be\sduplicated..
0460: 4a 20 74 79 70 65 20 43 6f 64 65 5c 73 44 65 66 J type Code\sDef
0470: 65 63 74 0a 4b 20 65 61 62 30 38 61 38 37 65 64 ect.K eab08a87ed
0480: 64 64 65 39 34 62 61 38 39 39 38 66 30 31 38 64 dde94ba8998f018d
0490: 38 37 36 65 37 30 61 39 36 65 33 35 64 34 0a 55 876e70a96e35d4.U
04a0: 20 61 6e 6f 6e 79 6d 6f 75 73 0a 5a 20 36 35 32 anonymous.Z 652
04b0: 30 34 35 33 33 32 62 31 31 64 38 65 33 31 62 61 045332b11d8e31ba
04c0: 65 66 64 66 31 34 65 64 35 34 39 64 36 0a efdf14ed549d6.