小编wal*_*ing的帖子

运算符不存在:interval> integer

我有一个查询适用于Postgresql 7.4但不适用于具有相同数据库的Postgresql 8.3.

查询:

SELECT * FROM login_session WHERE (now()-modified) > timeout;
Run Code Online (Sandbox Code Playgroud)

获取以下错误:

ERROR:  operator does not exist: interval > integer
LINE 1: ...ELECT * FROM login_session WHERE (now()-modified) > timeout ...
                                                             ^
HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.
Run Code Online (Sandbox Code Playgroud)

modified是a timestamp并且timeoutinteger.

我需要在服务器上更改一些设置吗?

我正在新服务器(ubuntu)上为客户端安装应用程序,因此我无法在应用程序中更改查询.

sql postgresql

5
推荐指数
2
解决办法
7906
查看次数

使用来自32位应用程序的SPSite访问64位SharePoint

我创建了一个以32位模式运行的批处理作业,因为它使用32位COM目标,这需要连接到SharePoint以进行列表更新.它在我的开发环境中工作,因为它是完整的32位.但在我的测试和制作环境中,我们使用的是64位SharePoint,这是我从SPSite获得的:

System.IO.FileNotFoundException: 
  The Web application at http://<my sp host>/ could not be found. 
  Verify that you have typed the URL correctly. 
  If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.

at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri req...
Run Code Online (Sandbox Code Playgroud)

这就是我做的

        using (SPSite site = new SPSite(_url))
        {
            using (SPWeb web = site.OpenWeb())
            {
                try
                {
                    SPList list = web.Lists[new Guid(_listID)];
                    SPListItem item = list.GetItemById(id);
                    item[field] = value;
                    item.SystemUpdate(false);
                } …
Run Code Online (Sandbox Code Playgroud)

sharepoint

3
推荐指数
1
解决办法
4055
查看次数

标签 统计

postgresql ×1

sharepoint ×1

sql ×1