How to implement FROM_UNIXTIME() like function in Firebird
Here is the example explained in Spanish :
select dateadd(second, 1255033470, cast(’01/01/1970 00:00:00.0000′ as timestamp)) from rdb$database;
Technical articles, How-tos, guides, etc.
Here is the example explained in Spanish :
select dateadd(second, 1255033470, cast(’01/01/1970 00:00:00.0000′ as timestamp)) from rdb$database;
After some hot discussion in Firebird-Java, I want to propose to ditch
the NONE as default character set for newly created databases when no
database charset is specified.
Read the rest of the full thread on Firebird-Devel.
Here are the Fulvio Senore’s tips to work with embedded with no password on all platforms : Linux, MacOsx and Windows
Is there any way to set socket timeouts?
Roman Rokytskyy answered :
-Yes, the property is called so_timeout and is directly passed when the socket is opened (see Socket.setSoTimeout documentation). You can append the property to the JDBC URL after question mark:
jdbc:firebirdsql:myhost/3050:/path/to/db.fdb?so_timeout=12345
– I have added this feature on request for some very special case. In general you don’t need this property, since the server is not supposed to crash and the network is not supposed to break as well, at least not for database applications. So, the solution is to solve the crash, not to add a workaround for it.
ps: soon it will be added to documentation
Two new Trace API / FB TraceManager screencasts have been made available:
The first is discussing the usage of the Trace API to detect
parametrized query reusage, which allows to check if you are re-using prepared statements in e.g. batch processing scenarios or not.
The second demo discusses the new error/warning tracing capabilities to
be expected in Firebird 2.5.2(http://tracker.firebirdsql.org/browse/CORE-3539) and its integration/usage in FB TraceManager.
Via Paul Beach Blog
I was recently contacted by a Firebird user on MacOSX who was trying to get the Firebird ODBC driver to build on MacOSX. I thought I would try and step in to help.
For those of you who follow the CVS checkins for OdbcJdbc you might have noticed the addition of a number of a new directory in the Builds directory called Gcc.darwin containing a makefile, a readme and a .sh file to create a lipo’ed dylib. The driver sucessfully builds and passes some simple tests. Feel free to contact me for a copy of the dylib to test further.
The readme contains the following information
Hey!
If you have ever worked with Firebird or Interbase using the standard .NET provider for OLE DB (System.Data.OleDb), you will have likely encountered issues like this:
This list of difficulties a .NET developer has to deal with is far from complete.
Now it’s all different in a fundamentally new ADO.NET Data Provider for OLE DB
IBProvider Team
Denys Khanzhiyev (node-firebird-libfbclient creator) wrote on nodejs mailing list:
I must admit your lib is faster than mine (See the response from Henry (node-firebird creator) , it is the result of the firebird library mode of operation : synchronous vs asynchronous mode of nodejs)
Here is code
https://gist.github.com/2854642
here is ab results
node-firebird-libfbclient:
Concurrency Level: 5
Time taken for tests: 3.346934 seconds
Complete requests: 1000
Total transferred: 885000 bytes
HTML transferred: 821000 bytes
Requests per second: 298.78 [#/sec] (mean)
Time per request: 16.735 [ms] (mean)
Time per request: 3.347 [ms] (mean, across all concurrent requests)
Transfer rate: 258.15 [Kbytes/sec] received
node-firebird:
Concurrency Level: 5
Time taken for tests: 2.928723 seconds
Complete requests: 1000
Total transferred: 885000 bytes
HTML transferred: 821000 bytes
Requests per second: 341.45 [#/sec] (mean)
Time per request: 14.644 [ms] (mean)
Time per request: 2.929 [ms] (mean, across all concurrent requests)
Transfer rate: 295.01 [Kbytes/sec] received