Forum Policyhttp://quransmessage.com/forum/policy
Yes, both(2:187 & 19:26) are about sawm, but the problem is that the sawm of Maryam(19:26) does not mentions anything which is in 2:187 ( i.e. drinking, eating & sexual acts), then how it can be the same? Likewise, sawm in 2:187 does not mentions anything which is in Maryam's sawm. Therefore I do not think about a connection between them.
...and according to Qur’an the term ‘ayyamn ma’doodat’ is used for ‘10 days’ (in 2:203, Qur’an mentions ‘ayyamn ma’doodat’ for Hajj days, and from 2:189 & 196 Hajj days are 10).