Let an infinite square well have its left corner at origin and right corner at $x=L$. We then have the following boundary conditions for a wavefunction $\Psi(0)=\Psi(L)=0$. Now for a different system let $V$ be the potential $V(x)=\lambda \delta (x)$ where $\delta(x)$ is the dirac delta function and $\lambda >0$. The general solution (according to my physics professor) is for a particle coming from the left
$$\Psi(x)=\begin{cases} Ae^{ikx}+Be^{−ikx} &\text{ for }x \le 0 \\ Ce^{ikx} &\text{ for }x \ge 0 \end{cases}$$
and he states "the physical solution must be continous at $x=0$. I think I agree with that however when I asked him "Why don't we have the boundary condition in this case $\Psi(0)=0$ due to $\delta(0)=\infty$ just as in the case with the infinite square well. He answered something but I didn't really understand. And could the solution be as following?
$$\Psi(x)=\begin{cases} Ae^{ikx}+Be^{−ikx} &\text{ for }x < 0 \\ Ce^{ikx} &\text{ for }x > 0 \\ 0 &\text{ for }x = 0 \end{cases}$$
So my question still remains. Thanks in advance.