Let $(X,\mathcal O_X)$ be an integral regular curve over $\mathbb C$. It follows that $X$ is also a connected Riemann surface.
From the algebraic point of view we can define the function field of $X$ as $K(X)=\mathcal O_{X,\eta}$ (where $\eta$ is the generic point). On the other hand from the analytic point of view we have the sheaf of meromorphic functions $\mathcal M$ on $X$ (here we have the usual definition of meromorphic functions by holomorphic charts).
Now, as far as I understand the vague statement of Serre's GAGA, we should have that meromorphic functions are the same as elements of $K(X)$. Does it mean that $\mathcal M$ is the constant sheaf: $$U\to K(X)\;?$$ Honestly this seems very strange to me and probably it is incredibly wrong. So, can you please explain the relation between $K(X)$ and the sheaf $\mathcal M$?
Important remark (this originated my question): I'm confused by the definition of the so called sheaf of stalks of meromorphic functions on $(X,\mathcal O_X)$, which is denoted by $\mathcal K_X$. You may find the definition of $\mathcal K_X$ for example on Liu's book (chap. 7). Since $X$ is integral one can show that $\mathcal K_X$ is the constant sheaf $K(X)$! So it seems that, at least in the algebraic setting, the sheaf of meromorphic functions is constant...
a) For every Riemann surface $X$ (compact or not) the sheaf $\mathcal {Rat}$ of rational functions is different from the sheaf $\mathcal {M}$ of meromorphic functions.
More precisely for every strict open subset $U\subsetneq X$, we have $\mathcal {Rat}(U)\subsetneq \mathcal {M}(U)$.
This is already crystal clear on the simplest example in the world: for $U=\mathbb C\subsetneq \mathbb P^1(\mathbb C)=X$ obviously $e^z\in \mathcal {M}(U)\setminus \mathcal {Rat}(U)$.
b) The sheaf $\mathcal {Rat}$ is constant for every Riemann surface $X$ (compact or not) while the sheaf $\mathcal {M}$ is non-constant for every such $X$.
What GAGA says (but was known in the special case of Riemann surfaces before Serre's article) is that the set of global sections of these sheaves are equal in the case of a compact Riemann surface $X$: although $\mathcal {Rat}\subsetneq \mathcal {M}$, we nevertheless have $\mathcal {Rat}(X)= \mathcal {M}(X)$.