A simple way to accomplish this is to use literals rather than parameter markers in the code.
实现此目的一种简单方式就是在代码中使用字符,而不是使用参数标记。
In this case, you tell the filter code to pay attention to the parameter count, and it should be 0.
在这种情况下,您告诉过滤器代码要注意参数的数量,并且它应当为0。
This does not require any changes to the application code and provides timestamp, thread id, and parameter information.
这不需要对应用程序代码做任何修改,它会提供时间戳、线程ID和参数信息。
The method takes a parameter, specifying the length of the timeout, and a code block, specifying which content to rebuild when the content expires.
此方法接受参数,用来指定超时的时长,它还接受一个代码块,用来指定当内容过期时哪些内容需要重建。
As an extreme case, parameters could be undocumented and the code distributed together with a default parameter set.
举一个极端的例子,可能没有对参数编制文档,而代码与缺省的参数集一起分发。
The latter method accepts a currency code as a second parameter.
后者的这个方法接受货币代码作为其第二个参数。
The method takes a string parameter, enclosed in quotes, and a code block.
该方法具有一个使用引号括起来的字符串参数和一个代码块。
In many cases, changing the method signature so the collaborator becomes a parameter will result in a confusing, untested snarl of code inside the method's original callers.
在许多情况下,更改方法签名以使合作者成为参数将会在方法的原始调用者内部产生混淆的、未经试验的代码混乱。
Therefore, the locale parameter may contain a country code in addition to the language code, to specify the specific language flavor that should be used.
因此,本地语言环境参数除了语言代码之外还要包含国家代码,以此指定应该使用的这种特定的语言。
You can change a parameter, a line of code, or a workload item, and rerun your benchmark to get a good measurement of the impact of the change.
您还可以改变参数,某行代码,或者工作负载项,甚至可以重新运行基准测试以获得好的度量结果。
A snippet of code for creating a custom parameter and associating it with a consumer reference is shown in Listing 14.
清单14显示了用于创建自定义参数并将其与使用者引用关联的代码片段。
It is imperative to use a unique error code for this parameter to distinguish this problem from others.
这个参数强制使用特殊的错误代码,以使该问题区别于其他问题。
After issuing the query, the code checks for a request parameter for a format element.
在发出查询之后,代码检查格式元素的请求参数。
Each child element-type in that sequence will be generated (while using code generation tool on WSDL) as a parameter of the operation in the service interface.
将生成(在WSDL上使用代码生成工具时)此序列中的每一个子元素类型作为服务界面中的操作参数。
Parameterized queries require that you define all the SQL code and then pass in each parameter to the query later.
参数化查询要求您定义所有的SQL代码,然后向查询传入每个参数。
At the code level, you could instead use an Introduce parameter refactoring, and your test scenarios would likewise reflect the new parameter.
在代码级别,你可以重构引入参数,接着你的测试场景将同样使用新的参数。
The ampersand identifies the parameter as the holder of a code block.
该符号将参数识别为代码块的持有者。
First, I'll go through the code involved in building the description of a class with no parameter types defined.
首先,我要处理的代码负责构建不带指定参数类型的类的描述。
Parameter validation code has been removed from the code sample shown here.
此处显示的代码示例中已删除参数验证代码。
It takes the connection object as a parameter and returns the return code for the function that was executed.
它的参数是连接对象,它返回已经执行的函数的返回码。
This configuration is stored in a file called log4j.properties, which I simply pass to my code as a parameter.
这个配置存储在一个名为log4j . properties的文件中,我只是将它作为一个参数传递给代码。
If the name of a configuration file is not passed as a parameter, the code USES s3.ini by default.
如果一个配置文件的名称没有作为一个参数传递,代码将默认使用s3 . ini。
The oltpqc code expects a positional parameter on the command line for the alarm threshold.
oltpqc代码需要从命令行中提供一个位置参数,用于表示警报阈值。
Listing 5 shows some code that checks to see if the zip5 parameter consists of five Numbers.
清单5显示的代码可以检查zip5参数是否符合五位数的要求。
The next step is to create the actor itself, using the actor method, which takes a block of code as a parameter.
下一步是使用actor方法创建actor本身,这个方法通过参数接收一个代码块。
The parameter is set by our custom code to False when the report is viewed on screen and True when it is printed or exported.
我们的自定义代码会在报表是在被显示在屏幕上时将该参数设置为False,而当报表是在被打印或输出时,将其设置为True。
The sample code xqueryparam.db2 provides good examples for one parameter and multiple parameter passing to sqlquery function.
示例代码xqueryparam . db 2提供了一些不错的例子,将一个和多个参数传递给sqlquery函数。
This adds the zip code parameter to the temperature object.
这向temperature对象添加邮政编码参数。
This is a large cache of previously compiled snippet code that supports parameter variations.
它可以缓存之前编译的snippet代码,支持参数变化。
This is a large cache of previously compiled snippet code that supports parameter variations.
它可以缓存之前编译的snippet代码,支持参数变化。
应用推荐