Will select the supplied $page number from a recordset, given that it is paginated in pages of $nrows rows per page. It also saves two boolean values saying if the given page is the first and/or last one of the recordset. Added by Iván Oliva to provide recordset pagination.
Will select the supplied $page number from a recordset, given that it is paginated in pages of $nrows rows per page. It also saves two boolean values saying if the given page is the first and/or last one of the recordset. Added by Iván Oliva to provide recordset pagination.
Update a blob column, given a where clause. There are more sophisticated blob handling functions that we could have implemented, but all require a very complex API. Instead we have chosen something that is extremely simple to understand and use.
This function will intercept all the literals used in the SQL, prepending the "N" char to them in order to allow mssql to store properly data sent in the correct UCS-2 encoding (by freeTDS and ODBTP) keeping SQL compatibility at ADOdb level (instead of hacking every project to add the "N" notation when working against MSSQL.
Note that this hack only must be used if ALL the char-based columns in your DB are of type nchar, nvarchar and ntext