ReferenceError:未定义Jdbc,V8版本有问题吗? [英] ReferenceError: Jdbc is not defined, a V8 version problem?

查看:61
本文介绍了ReferenceError:未定义Jdbc,V8版本有问题吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的代码每天工作6个月,似乎不再起作用.我知道Google App脚本运行时对V8做了更新, https://developers.google .com/apps-script/guides/v8-runtime (打开脚本编辑器"时显示的消息).我怀疑问题出在此版本更改,因为没有其他更改.

My code has been working daily for 6 months and it appears it doesn't work anymore. I know Google App Script Runtime did an update to V8 https://developers.google.com/apps-script/guides/v8-runtime (message displayed when I open "Script editor"). I suspect the problem comes from this version change because nothing else has changed.

我在代码开头使用Jdbc访问SQL数据库:

I use Jdbc to access an SQL database at the beginning of the code:

  var connectionName = '';
  var user = '';
  var userPwd = '';
  var db = '';
  var dbUrl = 'jdbc:mysql://'+connectionName+'/'+db;
  var conn = Jdbc.getConnection(dbUrl, user, userPwd); 

我收到的错误消息是"ReferenceError:未定义Jdbc",我不知道如何解决它.

The error message I get is "ReferenceError: Jdbc is not defined", and I don't know how to fix it.

请问有人可以解决吗?

推荐答案

这是v8的一个已知问题,Google已确认该错误.您可以按照问题跟踪器进行更新.

This is a known issue with v8 and Google has acknowledged the bug. You may follow the issue tracker for updates.

这篇关于ReferenceError:未定义Jdbc,V8版本有问题吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆